Skip to content

Commit 79e37a5

Browse files
Used the UseInternalContextFactory instead of directly using the repository options
1 parent 5d1d476 commit 79e37a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DotNetToolkit.Repository.InMemory/RepositoryOptionsBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static RepositoryOptionsBuilder UseInMemoryDatabase(this RepositoryOption
2020
if (source == null)
2121
throw new ArgumentNullException(nameof(source));
2222

23-
source.Options.With(new InMemoryRepositoryContextFactory(ignoreTransactionWarning));
23+
source.UseInternalContextFactory(new InMemoryRepositoryContextFactory(ignoreTransactionWarning));
2424

2525
return source;
2626
}
@@ -40,7 +40,7 @@ public static RepositoryOptionsBuilder UseInMemoryDatabase(this RepositoryOption
4040
if (databaseName == null)
4141
throw new ArgumentNullException(nameof(databaseName));
4242

43-
source.Options.With(new InMemoryRepositoryContextFactory(databaseName, ignoreTransactionWarning));
43+
source.UseInternalContextFactory(new InMemoryRepositoryContextFactory(databaseName, ignoreTransactionWarning));
4444

4545
return source;
4646
}

0 commit comments

Comments
 (0)