diff --git a/CoreIntegrationTests/CoreIntegrationTests.csproj b/CoreIntegrationTests/CoreIntegrationTests.csproj
index dbb6dac..37b4dd3 100644
--- a/CoreIntegrationTests/CoreIntegrationTests.csproj
+++ b/CoreIntegrationTests/CoreIntegrationTests.csproj
@@ -7,7 +7,7 @@
-
+
all
diff --git a/IntegrationTests/App.config b/IntegrationTests/App.config
index c8e5442..148a2b5 100644
--- a/IntegrationTests/App.config
+++ b/IntegrationTests/App.config
@@ -13,6 +13,14 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/IntegrationTests/Core/Compression/Snappy/lib/win/snappy32.dll b/IntegrationTests/Core/Compression/Snappy/lib/win/snappy32.dll
deleted file mode 100644
index afc82ca..0000000
Binary files a/IntegrationTests/Core/Compression/Snappy/lib/win/snappy32.dll and /dev/null differ
diff --git a/IntegrationTests/Core/Compression/Snappy/lib/win/snappy64.dll b/IntegrationTests/Core/Compression/Snappy/lib/win/snappy64.dll
deleted file mode 100644
index 36cd5fe..0000000
Binary files a/IntegrationTests/Core/Compression/Snappy/lib/win/snappy64.dll and /dev/null differ
diff --git a/IntegrationTests/Core/Compression/Zstandard/lib/win/libzstd.dll b/IntegrationTests/Core/Compression/Zstandard/lib/win/libzstd.dll
deleted file mode 100644
index e669123..0000000
Binary files a/IntegrationTests/Core/Compression/Zstandard/lib/win/libzstd.dll and /dev/null differ
diff --git a/IntegrationTests/Infrastructure/TestRepository.cs b/IntegrationTests/Infrastructure/TestRepository.cs
index f98e83c..04016ce 100644
--- a/IntegrationTests/Infrastructure/TestRepository.cs
+++ b/IntegrationTests/Infrastructure/TestRepository.cs
@@ -23,20 +23,5 @@ public void DropTestCollection(string partitionKey)
{
MongoDbContext.DropCollection(partitionKey);
}
-
- ///
- /// Gets the max of a property in a mongodb collections that is satisfying the filter.
- ///
- /// The document type.
- /// The type of the primary key.
- ///
- public async Task GetByMaxAsync(Expression> filter, Expression> orderByDescending)
- where TDocument : IDocument
- where TKey : System.IEquatable
- {
- return await GetCollection().Find(Builders.Filter.Where(filter))
- .SortByDescending(orderByDescending)
- .FirstOrDefaultAsync();
- }
}
}
diff --git a/IntegrationTests/IntegrationTests.csproj b/IntegrationTests/IntegrationTests.csproj
index ec385c5..6c6da8b 100644
--- a/IntegrationTests/IntegrationTests.csproj
+++ b/IntegrationTests/IntegrationTests.csproj
@@ -37,29 +37,38 @@
..\packages\Crc32C.NET.1.0.5.0\lib\net20\Crc32C.NET.dll
-
- ..\packages\DnsClient.1.4.0\lib\net45\DnsClient.dll
+
+ ..\packages\DnsClient.1.6.1\lib\net471\DnsClient.dll
-
- ..\packages\MongoDB.Bson.2.13.2\lib\net452\MongoDB.Bson.dll
+
+ ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll
-
- ..\packages\MongoDB.Driver.2.13.2\lib\net452\MongoDB.Driver.dll
+
+ ..\packages\Microsoft.Extensions.Logging.Abstractions.2.0.0\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll
-
- ..\packages\MongoDB.Driver.Core.2.13.2\lib\net452\MongoDB.Driver.Core.dll
+
+ ..\packages\Microsoft.Win32.Registry.5.0.0\lib\net461\Microsoft.Win32.Registry.dll
-
- ..\packages\MongoDB.Libmongocrypt.1.2.2\lib\net452\MongoDB.Libmongocrypt.dll
+
+ ..\packages\MongoDB.Bson.2.18.0\lib\net472\MongoDB.Bson.dll
-
- ..\packages\MongoDbGenericRepository.1.4.8\lib\net452\MongoDbGenericRepository.dll
+
+ ..\packages\MongoDB.Driver.2.18.0\lib\net472\MongoDB.Driver.dll
+
+
+ ..\packages\MongoDB.Driver.Core.2.18.0\lib\net472\MongoDB.Driver.Core.dll
+
+
+ ..\packages\MongoDB.Libmongocrypt.1.6.0\lib\net472\MongoDB.Libmongocrypt.dll
..\packages\NUnit.3.13.2\lib\net45\nunit.framework.dll
-
- ..\packages\SharpCompress.0.23.0\lib\net45\SharpCompress.dll
+
+ ..\packages\SharpCompress.0.30.1\lib\net461\SharpCompress.dll
+
+
+ ..\packages\Snappier.1.0.0\lib\netstandard2.0\Snappier.dll
..\packages\Snappy.NET.1.1.1.8\lib\net45\Snappy.NET.dll
@@ -68,18 +77,39 @@
..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
+
+
+ ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll
+ True
+ True
+
+
+ ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll
+
..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll
+
+
+ ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
+
+
+ ..\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll
+ True
+ True
+
..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll
..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll
+
+ ..\packages\System.Security.AccessControl.5.0.0\lib\net461\System.Security.AccessControl.dll
+
..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net461\System.Security.Cryptography.Algorithms.dll
@@ -92,9 +122,21 @@
..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll
+
+ ..\packages\System.Security.Principal.Windows.5.0.0\lib\net461\System.Security.Principal.Windows.dll
+
+
+ ..\packages\System.Text.Encoding.CodePages.5.0.0\lib\net461\System.Text.Encoding.CodePages.dll
+
+
+ ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
+
..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll
+
+ ..\packages\ZstdSharp.Port.0.6.2\lib\net461\ZstdSharp.dll
+
@@ -126,9 +168,12 @@
-
-
-
+
+ {efc776c4-2af3-440c-be80-3fbe335817a5}
+ MongoDbGenericRepository
+
+
+
@@ -136,11 +181,9 @@
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
+
-
-
+
\ No newline at end of file
diff --git a/IntegrationTests/libmongocrypt.dylib b/IntegrationTests/libmongocrypt.dylib
index 6953c78..d17acad 100644
Binary files a/IntegrationTests/libmongocrypt.dylib and b/IntegrationTests/libmongocrypt.dylib differ
diff --git a/IntegrationTests/libmongocrypt.so b/IntegrationTests/libmongocrypt.so
index 9bcfbf0..c4c55c6 100644
Binary files a/IntegrationTests/libmongocrypt.so and b/IntegrationTests/libmongocrypt.so differ
diff --git a/IntegrationTests/mongocrypt.dll b/IntegrationTests/mongocrypt.dll
index ebbb7cc..bde3c75 100644
Binary files a/IntegrationTests/mongocrypt.dll and b/IntegrationTests/mongocrypt.dll differ
diff --git a/IntegrationTests/packages.config b/IntegrationTests/packages.config
index 62692a3..c2d7c84 100644
--- a/IntegrationTests/packages.config
+++ b/IntegrationTests/packages.config
@@ -1,24 +1,36 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MongoDbGenericRepository/MongoDbGenericRepository.csproj b/MongoDbGenericRepository/MongoDbGenericRepository.csproj
index aeeb853..da1cee7 100644
--- a/MongoDbGenericRepository/MongoDbGenericRepository.csproj
+++ b/MongoDbGenericRepository/MongoDbGenericRepository.csproj
@@ -4,7 +4,7 @@
net472;netstandard2.0;
true
MongoDbGenericRepository
- 1.4.8
+ 1.5.1
Alexandre Spieser
MongoDb Generic Repository
A generic repository implementation using the MongoDB C# Sharp 2.0 driver.
@@ -12,10 +12,10 @@
http://www.opensource.org/licenses/mit-license.php
false
Release notes are at https://github.com/alexandre-spieser/mongodb-generic-repository/releases
- Copyright 2021 (c) Alexandre Spieser. All rights reserved.
+ Copyright 2023 (c) Alexandre Spieser. All rights reserved.
MongoDb Repository Generic NoSql
true
- 1.4.8
+ 1.5.1
https://github.com/alexandre-spieser/mongodb-generic-repository
Git
@@ -25,7 +25,7 @@
-
+