From 1dfc4265a822cbe15334306455d9e59d9ccbb5b0 Mon Sep 17 00:00:00 2001
From: Normen Scheiber <46715105+nscheibe@users.noreply.github.com>
Date: Thu, 2 Feb 2023 14:49:00 +0100
Subject: [PATCH] Fixed mongo options validate. (#74)
---
src/Context/Context.csproj | 6 ------
src/Context/MongoOptionsExtensions.cs | 2 +-
src/Dependencies.props | 4 ++--
src/Prime.Extensions/Prime.Extensions.csproj | 6 ------
4 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/src/Context/Context.csproj b/src/Context/Context.csproj
index e720159..e97964c 100644
--- a/src/Context/Context.csproj
+++ b/src/Context/Context.csproj
@@ -30,12 +30,6 @@
-
-
-
-
-
-
diff --git a/src/Context/MongoOptionsExtensions.cs b/src/Context/MongoOptionsExtensions.cs
index 5ad0288..ff42f1a 100644
--- a/src/Context/MongoOptionsExtensions.cs
+++ b/src/Context/MongoOptionsExtensions.cs
@@ -8,7 +8,7 @@ public static MongoOptions Validate(
this MongoOptions? mongoOptions)
where TMongoDBContext : IMongoDbContext
{
- mongoOptions.Validate();
+ Validate(mongoOptions as MongoOptions);
return mongoOptions!;
}
diff --git a/src/Dependencies.props b/src/Dependencies.props
index 4b8804e..c2f314f 100644
--- a/src/Dependencies.props
+++ b/src/Dependencies.props
@@ -1,6 +1,6 @@
- netcoreapp3.1;net5.0;net6.0;net7.0
- netstandard2.0;netstandard2.1;netcoreapp3.1;net6.0;net7.0
+ net6.0;net7.0
+ netstandard2.0;netstandard2.1;net6.0;net7.0
diff --git a/src/Prime.Extensions/Prime.Extensions.csproj b/src/Prime.Extensions/Prime.Extensions.csproj
index 9007a36..a2a877c 100644
--- a/src/Prime.Extensions/Prime.Extensions.csproj
+++ b/src/Prime.Extensions/Prime.Extensions.csproj
@@ -30,12 +30,6 @@
-
-
-
-
-
-