Update to MongoDB Driver 2.7.0, MongoDbGenericRepository 1.3.8.

This commit is contained in:
alexandre-spieser
2018-10-07 20:40:37 +01:00
parent 1114b6531d
commit c817c7db52
14 changed files with 87 additions and 87 deletions
@@ -8,7 +8,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="AspNetCore.Identity.MongoDbCore" Version="1.0.8" /> <PackageReference Include="AspNetCore.Identity.MongoDbCore" Version="1.0.9" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.1.1" /> <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.1.1" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.1" /> <PackageReference Include="Microsoft.AspNetCore" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.0.1" />
+2 -2
View File
@@ -16,8 +16,8 @@
<!--<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />--> <!--<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />-->
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.0.1" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="2.0.1" /> <PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="2.0.1" />
<PackageReference Include="MongoDB.Driver" Version="2.5.0" /> <PackageReference Include="MongoDB.Driver" Version="2.7.0" />
<PackageReference Include="MongoDbGenericRepository" Version="1.3.6" /> <PackageReference Include="MongoDbGenericRepository" Version="1.3.8" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
+4 -4
View File
@@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>AspNetCore.Identity.MongoDbCore</id> <id>AspNetCore.Identity.MongoDbCore</id>
<version>1.0.8</version> <version>1.0.9</version>
<title>AspNetCore.Identity.MongoDbCore</title> <title>AspNetCore.Identity.MongoDbCore</title>
<authors>Alexandre Spieser</authors> <authors>Alexandre Spieser</authors>
<owners>Alexandre Spieser</owners> <owners>Alexandre Spieser</owners>
@@ -10,14 +10,14 @@
<projectUrl>https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore</projectUrl> <projectUrl>https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A MongoDb UserStore and RoleStore adapter for Microsoft.AspNetCore.Identity 2.0.</description> <description>A MongoDb UserStore and RoleStore adapter for Microsoft.AspNetCore.Identity 2.0.</description>
<releaseNotes>Added support for documents with an Id of type ObjectId.</releaseNotes> <releaseNotes>Release notes are at https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore/releases</releaseNotes>
<copyright>Copyright 2018 (c) Alexandre Spieser. All rights reserved.</copyright> <copyright>Copyright 2018 (c) Alexandre Spieser. All rights reserved.</copyright>
<tags>aspnetcore mongo mongodb identity membership</tags> <tags>aspnetcore mongo mongodb identity membership</tags>
<dependencies> <dependencies>
<dependency id="Microsoft.AspNetCore.Identity" version="2.0.1" /> <dependency id="Microsoft.AspNetCore.Identity" version="2.0.1" />
<dependency id="Microsoft.Extensions.Identity.Stores" version="2.0.1" /> <dependency id="Microsoft.Extensions.Identity.Stores" version="2.0.1" />
<dependency id="MongoDB.Driver" version="2.5.0" /> <dependency id="MongoDB.Driver" version="2.7.0" />
<dependency id="MongoDbGenericRepository" version="1.3.6" /> <dependency id="MongoDbGenericRepository" version="1.3.8" />
</dependencies> </dependencies>
</metadata> </metadata>
<files> <files>
+1 -1
View File
@@ -131,7 +131,7 @@ namespace AspNetCore.Identity.MongoDbCore
/// <summary> /// <summary>
/// A navigation property for the roles the store contains. /// A navigation property for the roles the store contains.
/// </summary> /// </summary>
public virtual IMongoCollection<TRole> RolesCollection => Context.GetCollection<TRole, TKey>(); public virtual IMongoCollection<TRole> RolesCollection => Context.GetCollection<TRole>();
/// <summary> /// <summary>
/// Gets or sets the <see cref="IdentityErrorDescriber"/> for any error that occurred with the current operation. /// Gets or sets the <see cref="IdentityErrorDescriber"/> for any error that occurred with the current operation.
+1 -1
View File
@@ -118,7 +118,7 @@ namespace AspNetCore.Identity.MongoDbCore
} }
} }
private IMongoCollection<TUser> UsersCollection { get { return Context.GetCollection<TUser, TKey>(); } } private IMongoCollection<TUser> UsersCollection { get { return Context.GetCollection<TUser>(); } }
/// <summary> /// <summary>
/// Gets or sets a flag indicating if changes should be persisted after CreateAsync, UpdateAsync and DeleteAsync are called. /// Gets or sets a flag indicating if changes should be persisted after CreateAsync, UpdateAsync and DeleteAsync are called.
+3 -3
View File
@@ -153,8 +153,8 @@ namespace AspNetCore.Identity.MongoDbCore
} }
} }
private IMongoCollection<TUser> UsersCollection { get { return Context.GetCollection<TUser, TKey>(); } } private IMongoCollection<TUser> UsersCollection { get { return Context.GetCollection<TUser>(); } }
private IMongoCollection<TRole> RolesCollection { get { return Context.GetCollection<TRole, TKey>(); } } private IMongoCollection<TRole> RolesCollection { get { return Context.GetCollection<TRole>(); } }
/// <summary> /// <summary>
/// Gets or sets a flag indicating if changes should be persisted after CreateAsync, UpdateAsync and DeleteAsync are called. /// Gets or sets a flag indicating if changes should be persisted after CreateAsync, UpdateAsync and DeleteAsync are called.
@@ -207,7 +207,7 @@ namespace AspNetCore.Identity.MongoDbCore
} }
var oldStamp = user.ConcurrencyStamp; var oldStamp = user.ConcurrencyStamp;
user.ConcurrencyStamp = Guid.NewGuid().ToString(); user.ConcurrencyStamp = Guid.NewGuid().ToString();
var collection = MongoRepository.Context.GetCollection<TUser, TKey>(); var collection = MongoRepository.Context.GetCollection<TUser>();
var updateRes = await collection.ReplaceOneAsync(x => x.Id.Equals(user.Id) var updateRes = await collection.ReplaceOneAsync(x => x.Id.Equals(user.Id)
&& x.ConcurrencyStamp.Equals(oldStamp), && x.ConcurrencyStamp.Equals(oldStamp),
user); user);
@@ -1,7 +1,7 @@
{ {
"runtimeTarget": { "runtimeTarget": {
"name": ".NETCoreApp,Version=v2.0", "name": ".NETCoreApp,Version=v2.0",
"signature": "38b2f87cafd1a2fa8c7bd3268841c3cd7abe472b" "signature": "10fe378b60634bc380193c8a09a1d3f29a3e2954"
}, },
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
@@ -10,8 +10,8 @@
"dependencies": { "dependencies": {
"Microsoft.AspNetCore.Identity": "2.0.1", "Microsoft.AspNetCore.Identity": "2.0.1",
"Microsoft.Extensions.Identity.Stores": "2.0.1", "Microsoft.Extensions.Identity.Stores": "2.0.1",
"MongoDB.Driver": "2.5.0", "MongoDB.Driver": "2.7.0",
"MongoDbGenericRepository": "1.3.6" "MongoDbGenericRepository": "1.3.8"
}, },
"runtime": { "runtime": {
"AspNetCore.Identity.MongoDbCore.dll": {} "AspNetCore.Identity.MongoDbCore.dll": {}
@@ -323,7 +323,7 @@
} }
} }
}, },
"MongoDB.Bson/2.5.0": { "MongoDB.Bson/2.7.0": {
"dependencies": { "dependencies": {
"System.Collections.NonGeneric": "4.0.1", "System.Collections.NonGeneric": "4.0.1",
"System.Diagnostics.Process": "4.1.0", "System.Diagnostics.Process": "4.1.0",
@@ -334,10 +334,10 @@
"lib/netstandard1.5/MongoDB.Bson.dll": {} "lib/netstandard1.5/MongoDB.Bson.dll": {}
} }
}, },
"MongoDB.Driver/2.5.0": { "MongoDB.Driver/2.7.0": {
"dependencies": { "dependencies": {
"MongoDB.Bson": "2.5.0", "MongoDB.Bson": "2.7.0",
"MongoDB.Driver.Core": "2.5.0", "MongoDB.Driver.Core": "2.7.0",
"System.ComponentModel.TypeConverter": "4.1.0", "System.ComponentModel.TypeConverter": "4.1.0",
"System.Linq.Queryable": "4.0.1" "System.Linq.Queryable": "4.0.1"
}, },
@@ -345,10 +345,10 @@
"lib/netstandard1.5/MongoDB.Driver.dll": {} "lib/netstandard1.5/MongoDB.Driver.dll": {}
} }
}, },
"MongoDB.Driver.Core/2.5.0": { "MongoDB.Driver.Core/2.7.0": {
"dependencies": { "dependencies": {
"DnsClient": "1.0.7", "DnsClient": "1.0.7",
"MongoDB.Bson": "2.5.0", "MongoDB.Bson": "2.7.0",
"System.Collections.Specialized": "4.0.1", "System.Collections.Specialized": "4.0.1",
"System.Diagnostics.TraceSource": "4.0.0", "System.Diagnostics.TraceSource": "4.0.0",
"System.Net.NameResolution": "4.3.0", "System.Net.NameResolution": "4.3.0",
@@ -359,9 +359,9 @@
"lib/netstandard1.5/MongoDB.Driver.Core.dll": {} "lib/netstandard1.5/MongoDB.Driver.Core.dll": {}
} }
}, },
"MongoDbGenericRepository/1.3.6": { "MongoDbGenericRepository/1.3.8": {
"dependencies": { "dependencies": {
"MongoDB.Driver": "2.5.0" "MongoDB.Driver": "2.7.0"
}, },
"runtime": { "runtime": {
"lib/netstandard2.0/MongoDbGenericRepository.dll": {} "lib/netstandard2.0/MongoDbGenericRepository.dll": {}
@@ -1441,33 +1441,33 @@
"path": "microsoft.win32.registry/4.4.0", "path": "microsoft.win32.registry/4.4.0",
"hashPath": "microsoft.win32.registry.4.4.0.nupkg.sha512" "hashPath": "microsoft.win32.registry.4.4.0.nupkg.sha512"
}, },
"MongoDB.Bson/2.5.0": { "MongoDB.Bson/2.7.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-b7zQAUdSdfJ4kmGzAA+hv89N2Q6jm1td9WfTimgp8xWAsN4qbtIjA/JkAY1HA0Z8xfXQE3EmdUcDEwT8bkXfXg==", "sha512": "sha512-vzpTDHYX/X6gF9qtDuKRJiLkqpj5OZuT1bIzJCiBiU8CwJ37becYmaXuy/QSuWnYN6j6ZdVTWILKbWt2MXL8DA==",
"path": "mongodb.bson/2.5.0", "path": "mongodb.bson/2.7.0",
"hashPath": "mongodb.bson.2.5.0.nupkg.sha512" "hashPath": "mongodb.bson.2.7.0.nupkg.sha512"
}, },
"MongoDB.Driver/2.5.0": { "MongoDB.Driver/2.7.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-VbHVV8Xdl3PcPU3XxdOUE/yc4BnPokg7k1XHU/3fEM/UdfCy0Ie0eXVE+U2HJXVcM3TQuuyVn+B1La2YY7X8dA==", "sha512": "sha512-5wP5BBwm5YO6h2Vhw6zQmOwSW9WP2d6kgRM6E7uIbwIJz4+j2trS2Wo7/+IYow5WVN8Jd6O27bIB/4gKNepO1Q==",
"path": "mongodb.driver/2.5.0", "path": "mongodb.driver/2.7.0",
"hashPath": "mongodb.driver.2.5.0.nupkg.sha512" "hashPath": "mongodb.driver.2.7.0.nupkg.sha512"
}, },
"MongoDB.Driver.Core/2.5.0": { "MongoDB.Driver.Core/2.7.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-/JYwBTEoWZDHiSePk0AF775c0YkSGSsHTA2+hWt9/UOCkYV/QOFujAWDdpFzBMCDpmQewbLRR1knYj76YOxffA==", "sha512": "sha512-SepB4KT+zXA3iFaIFwXVKmk6BZIp0EGE/iWqNbDZ1mca9e8EhtqYPwOOzFmEbdKAzmVvF1y86kNI4agWP6I5sg==",
"path": "mongodb.driver.core/2.5.0", "path": "mongodb.driver.core/2.7.0",
"hashPath": "mongodb.driver.core.2.5.0.nupkg.sha512" "hashPath": "mongodb.driver.core.2.7.0.nupkg.sha512"
}, },
"MongoDbGenericRepository/1.3.6": { "MongoDbGenericRepository/1.3.8": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-bm4Q5RDLqt6rRZJTDiWvQpHOJ3ACxfELqg0kiZO8dyb7xMEqPQC7urpuLKMpDUmnE/pMBuXe6Pmy9TyTksDbdg==", "sha512": "sha512-7zEYdsDulxAfEpWJrdUc4R0Te8XQ5dbOMPeFpZyO2syjPDcD13Z/zSzb9h3dOh0xedHCNPRj9dh62yXXWpHpvA==",
"path": "mongodbgenericrepository/1.3.6", "path": "mongodbgenericrepository/1.3.8",
"hashPath": "mongodbgenericrepository.1.3.6.nupkg.sha512" "hashPath": "mongodbgenericrepository.1.3.8.nupkg.sha512"
}, },
"runtime.native.System/4.3.0": { "runtime.native.System/4.3.0": {
"type": "package", "type": "package",
@@ -1,7 +1,7 @@
{ {
"runtimeTarget": { "runtimeTarget": {
"name": ".NETStandard,Version=v2.0/", "name": ".NETStandard,Version=v2.0/",
"signature": "777efc9083cc946975cf0e3ebd09810483543683" "signature": "b91ec0d2463596661d279c90d3c35b28b4a2907b"
}, },
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
@@ -11,9 +11,9 @@
"dependencies": { "dependencies": {
"Microsoft.AspNetCore.Identity": "2.0.1", "Microsoft.AspNetCore.Identity": "2.0.1",
"Microsoft.Extensions.Identity.Stores": "2.0.1", "Microsoft.Extensions.Identity.Stores": "2.0.1",
"MongoDB.Driver": "2.5.0", "MongoDB.Driver": "2.7.0",
"MongoDbGenericRepository": "1.3.6", "MongoDbGenericRepository": "1.3.8",
"NETStandard.Library": "2.0.1" "NETStandard.Library": "2.0.3"
}, },
"runtime": { "runtime": {
"AspNetCore.Identity.MongoDbCore.dll": {} "AspNetCore.Identity.MongoDbCore.dll": {}
@@ -22,7 +22,7 @@
"DnsClient/1.0.7": { "DnsClient/1.0.7": {
"dependencies": { "dependencies": {
"Microsoft.Win32.Primitives": "4.3.0", "Microsoft.Win32.Primitives": "4.3.0",
"NETStandard.Library": "2.0.1", "NETStandard.Library": "2.0.3",
"System.Buffers": "4.4.0", "System.Buffers": "4.4.0",
"System.Collections": "4.3.0", "System.Collections": "4.3.0",
"System.Collections.Concurrent": "4.3.0", "System.Collections.Concurrent": "4.3.0",
@@ -321,9 +321,9 @@
"lib/netstandard2.0/Microsoft.Win32.Registry.dll": {} "lib/netstandard2.0/Microsoft.Win32.Registry.dll": {}
} }
}, },
"MongoDB.Bson/2.5.0": { "MongoDB.Bson/2.7.0": {
"dependencies": { "dependencies": {
"NETStandard.Library": "2.0.1", "NETStandard.Library": "2.0.3",
"System.Collections.NonGeneric": "4.0.1", "System.Collections.NonGeneric": "4.0.1",
"System.Diagnostics.Process": "4.1.0", "System.Diagnostics.Process": "4.1.0",
"System.Dynamic.Runtime": "4.0.11", "System.Dynamic.Runtime": "4.0.11",
@@ -333,11 +333,11 @@
"lib/netstandard1.5/MongoDB.Bson.dll": {} "lib/netstandard1.5/MongoDB.Bson.dll": {}
} }
}, },
"MongoDB.Driver/2.5.0": { "MongoDB.Driver/2.7.0": {
"dependencies": { "dependencies": {
"MongoDB.Bson": "2.5.0", "MongoDB.Bson": "2.7.0",
"MongoDB.Driver.Core": "2.5.0", "MongoDB.Driver.Core": "2.7.0",
"NETStandard.Library": "2.0.1", "NETStandard.Library": "2.0.3",
"System.ComponentModel.TypeConverter": "4.1.0", "System.ComponentModel.TypeConverter": "4.1.0",
"System.Linq.Queryable": "4.0.1" "System.Linq.Queryable": "4.0.1"
}, },
@@ -345,11 +345,11 @@
"lib/netstandard1.5/MongoDB.Driver.dll": {} "lib/netstandard1.5/MongoDB.Driver.dll": {}
} }
}, },
"MongoDB.Driver.Core/2.5.0": { "MongoDB.Driver.Core/2.7.0": {
"dependencies": { "dependencies": {
"DnsClient": "1.0.7", "DnsClient": "1.0.7",
"MongoDB.Bson": "2.5.0", "MongoDB.Bson": "2.7.0",
"NETStandard.Library": "2.0.1", "NETStandard.Library": "2.0.3",
"System.Collections.Specialized": "4.0.1", "System.Collections.Specialized": "4.0.1",
"System.Diagnostics.TraceSource": "4.0.0", "System.Diagnostics.TraceSource": "4.0.0",
"System.Net.NameResolution": "4.3.0", "System.Net.NameResolution": "4.3.0",
@@ -360,15 +360,15 @@
"lib/netstandard1.5/MongoDB.Driver.Core.dll": {} "lib/netstandard1.5/MongoDB.Driver.Core.dll": {}
} }
}, },
"MongoDbGenericRepository/1.3.6": { "MongoDbGenericRepository/1.3.8": {
"dependencies": { "dependencies": {
"MongoDB.Driver": "2.5.0" "MongoDB.Driver": "2.7.0"
}, },
"runtime": { "runtime": {
"lib/netstandard2.0/MongoDbGenericRepository.dll": {} "lib/netstandard2.0/MongoDbGenericRepository.dll": {}
} }
}, },
"NETStandard.Library/2.0.1": { "NETStandard.Library/2.0.3": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0" "Microsoft.NETCore.Platforms": "1.1.0"
} }
@@ -1406,40 +1406,40 @@
"path": "microsoft.win32.registry/4.4.0", "path": "microsoft.win32.registry/4.4.0",
"hashPath": "microsoft.win32.registry.4.4.0.nupkg.sha512" "hashPath": "microsoft.win32.registry.4.4.0.nupkg.sha512"
}, },
"MongoDB.Bson/2.5.0": { "MongoDB.Bson/2.7.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-b7zQAUdSdfJ4kmGzAA+hv89N2Q6jm1td9WfTimgp8xWAsN4qbtIjA/JkAY1HA0Z8xfXQE3EmdUcDEwT8bkXfXg==", "sha512": "sha512-vzpTDHYX/X6gF9qtDuKRJiLkqpj5OZuT1bIzJCiBiU8CwJ37becYmaXuy/QSuWnYN6j6ZdVTWILKbWt2MXL8DA==",
"path": "mongodb.bson/2.5.0", "path": "mongodb.bson/2.7.0",
"hashPath": "mongodb.bson.2.5.0.nupkg.sha512" "hashPath": "mongodb.bson.2.7.0.nupkg.sha512"
}, },
"MongoDB.Driver/2.5.0": { "MongoDB.Driver/2.7.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-VbHVV8Xdl3PcPU3XxdOUE/yc4BnPokg7k1XHU/3fEM/UdfCy0Ie0eXVE+U2HJXVcM3TQuuyVn+B1La2YY7X8dA==", "sha512": "sha512-5wP5BBwm5YO6h2Vhw6zQmOwSW9WP2d6kgRM6E7uIbwIJz4+j2trS2Wo7/+IYow5WVN8Jd6O27bIB/4gKNepO1Q==",
"path": "mongodb.driver/2.5.0", "path": "mongodb.driver/2.7.0",
"hashPath": "mongodb.driver.2.5.0.nupkg.sha512" "hashPath": "mongodb.driver.2.7.0.nupkg.sha512"
}, },
"MongoDB.Driver.Core/2.5.0": { "MongoDB.Driver.Core/2.7.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-/JYwBTEoWZDHiSePk0AF775c0YkSGSsHTA2+hWt9/UOCkYV/QOFujAWDdpFzBMCDpmQewbLRR1knYj76YOxffA==", "sha512": "sha512-SepB4KT+zXA3iFaIFwXVKmk6BZIp0EGE/iWqNbDZ1mca9e8EhtqYPwOOzFmEbdKAzmVvF1y86kNI4agWP6I5sg==",
"path": "mongodb.driver.core/2.5.0", "path": "mongodb.driver.core/2.7.0",
"hashPath": "mongodb.driver.core.2.5.0.nupkg.sha512" "hashPath": "mongodb.driver.core.2.7.0.nupkg.sha512"
}, },
"MongoDbGenericRepository/1.3.6": { "MongoDbGenericRepository/1.3.8": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-bm4Q5RDLqt6rRZJTDiWvQpHOJ3ACxfELqg0kiZO8dyb7xMEqPQC7urpuLKMpDUmnE/pMBuXe6Pmy9TyTksDbdg==", "sha512": "sha512-7zEYdsDulxAfEpWJrdUc4R0Te8XQ5dbOMPeFpZyO2syjPDcD13Z/zSzb9h3dOh0xedHCNPRj9dh62yXXWpHpvA==",
"path": "mongodbgenericrepository/1.3.6", "path": "mongodbgenericrepository/1.3.8",
"hashPath": "mongodbgenericrepository.1.3.6.nupkg.sha512" "hashPath": "mongodbgenericrepository.1.3.8.nupkg.sha512"
}, },
"NETStandard.Library/2.0.1": { "NETStandard.Library/2.0.3": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-oA6nwv9MhEKYvLpjZ0ggSpb1g4CQViDVQjLUcDWg598jtvJbpfeP2reqwI1GLW2TbxC/Ml7xL6BBR1HmKPXlTg==", "sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"path": "netstandard.library/2.0.1", "path": "netstandard.library/2.0.3",
"hashPath": "netstandard.library.2.0.1.nupkg.sha512" "hashPath": "netstandard.library.2.0.3.nupkg.sha512"
}, },
"runtime.native.System/4.3.0": { "runtime.native.System/4.3.0": {
"type": "package", "type": "package",
@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AspNetCore.Identity.MongoDbCore" Version="1.0.8" /> <PackageReference Include="AspNetCore.Identity.MongoDbCore" Version="1.0.9" />
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Http" /> <PackageReference Include="Microsoft.AspNetCore.Http" />
@@ -20,8 +20,8 @@
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.0.1" /> <PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="MongoDB.Driver" Version="2.5.0" /> <PackageReference Include="MongoDB.Driver" Version="2.7.0" />
<PackageReference Include="MongoDbGenericRepository" Version="1.3.6" /> <PackageReference Include="MongoDbGenericRepository" Version="1.3.8" />
<PackageReference Include="Moq" Version="4.8.1" /> <PackageReference Include="Moq" Version="4.8.1" />
<PackageReference Include="xunit" Version="2.3.1" /> <PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
@@ -162,7 +162,7 @@ namespace AspNetCore.Identity.MongoDbCore.Test
private IQueryable<TUser> GetQueryable() private IQueryable<TUser> GetQueryable()
{ {
return Container.MongoRepository.Context.GetCollection<TUser, TKey>().AsQueryable(); return Container.MongoRepository.Context.GetCollection<TUser>().AsQueryable();
} }
[Fact] [Fact]
@@ -87,7 +87,7 @@ namespace AspNetCore.Identity.MongoDbCore.Test
private IQueryable<TUser> GetQueryable() private IQueryable<TUser> GetQueryable()
{ {
return Container.MongoRepository.Context.GetCollection<TUser, TKey>().AsQueryable(); return Container.MongoRepository.Context.GetCollection<TUser>().AsQueryable();
} }
[Fact] [Fact]
@@ -31,7 +31,7 @@ namespace AspNetCore.Identity.MongoDbCore.Test
var userIds = UsersToDelete.ToList().Select(e => e.Id); var userIds = UsersToDelete.ToList().Select(e => e.Id);
if (userIds.Any()) if (userIds.Any())
{ {
Context.GetCollection<TUser, TKey>().DeleteMany(e => userIds.Contains(e.Id)); Context.GetCollection<TUser>().DeleteMany(e => userIds.Contains(e.Id));
} }
} }
} }
@@ -57,12 +57,12 @@ namespace AspNetCore.Identity.MongoDbCore.Test
var userIds = UsersToDelete.ToList().Select(e => e.Id); var userIds = UsersToDelete.ToList().Select(e => e.Id);
if (userIds.Any()) if (userIds.Any())
{ {
Context.GetCollection<TUser, TKey>().DeleteMany(e => userIds.Contains(e.Id)); Context.GetCollection<TUser>().DeleteMany(e => userIds.Contains(e.Id));
} }
var roleIds = RolesToDelete.ToList().Select(e => e.Id); var roleIds = RolesToDelete.ToList().Select(e => e.Id);
if (roleIds.Any()) if (roleIds.Any())
{ {
Context.GetCollection<TRole, TKey>().DeleteMany(e => roleIds.Contains(e.Id)); Context.GetCollection<TRole>().DeleteMany(e => roleIds.Contains(e.Id));
} }
} }
} }