Updated to .Net Core 8

This commit is contained in:
UltimateCoder
2024-11-26 00:18:00 +01:00
parent e8842f8991
commit 2b0b04ec7b
28 changed files with 269 additions and 504 deletions
@@ -97,7 +97,6 @@ namespace MongoDbGenericRepository
// GuidRepresentation and GuidRepresentationMode will be removed in the next major release of the MongoDB Driver.
// We can safely replace this with RepositorySerializationProvider.Instance.RegisterSerializer once we upgrade to the next major release.
#pragma warning disable CS0618
BsonDefaults.GuidRepresentationMode = GuidRepresentationMode.V3;
RepositorySerializationProvider.Instance.RegisterSerializer(new GuidSerializer(guidRepresentation));
#pragma warning restore CS0618
}