Skip to content

Commit

Permalink
Removed DbReadOnlyContextFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDavidWilliams committed Apr 23, 2020
1 parent 85b26d1 commit 752e194
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public static void Initialize(Registry registry)
registry.IncludeRegistry<ConfigurationRegistry>();
registry.IncludeRegistry<CurrentDateTimeRegistry>();
registry.IncludeRegistry<DataRegistry>();
registry.IncludeRegistry<ReadOnlyDataRegistry>();
registry.IncludeRegistry<DomainServiceRegistry>();
registry.IncludeRegistry<EntityFrameworkCoreUnitOfWorkRegistry<ProviderCommitmentsDbContext>>();
registry.IncludeRegistry<EmployerAccountsRegistry>();
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,4 @@ public DataRegistry()
For<IProviderCommitmentsDbContext>().Use(c => c.GetInstance<IDbContextFactory>().CreateDbContext());
}
}
public class ReadOnlyDataRegistry : Registry
{
public ReadOnlyDataRegistry()
{
For<IDbReadOnlyContextFactory>().Use<DbReadOnlyContextFactory>();
For<ProviderCommitmentsDbContext>().Use(c => c.GetInstance<IDbReadOnlyContextFactory>().CreateDbContext());
For<IProviderCommitmentsDbContext>().Use(c => c.GetInstance<IDbReadOnlyContextFactory>().CreateDbContext());
}
}
}

0 comments on commit 752e194

Please sign in to comment.