Skip to content

Commit 5455ac9

Browse files
committed
Fixed the IsDefined-check
1 parent 0246ea2 commit 5455ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Thinktecture.EntityFrameworkCore.SqlServer.Testing/EntityFrameworkCore/Testing/SqlServerTestDbContextProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private static IsolationLevel ValidateIsolationLevel(IsolationLevel? isolationLe
8686
if (!isolationLevel.HasValue)
8787
return IsolationLevel.ReadCommitted;
8888

89-
if (Enum.IsDefined(isolationLevel.Value))
89+
if (!Enum.IsDefined(isolationLevel.Value))
9090
throw new ArgumentException($"The provided isolation level '{isolationLevel}' is invalid.", nameof(isolationLevel));
9191

9292
if (isolationLevel < IsolationLevel.ReadCommitted)

0 commit comments

Comments
 (0)