You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: look at dbContextType (from Enyim.Caching configuration bits) and how it caches, see about implementing cache or expanding FastActivator to take parameters
52
+
DbContextdbContext=null;
53
+
54
+
// the default way of getting a DbContext if there is no Ioc container setup
thrownewConfigurationErrorsException("The connectionString and dbContextType attribute are required in order to use the EfRepository via the configuration file, unless you set the RepositoryDependencyResolver to use an Ioc container.");
55
68
}
56
-
57
-
// TODO: look at dbContextType (from Enyim.Caching configuration bits) and how it caches, see about implementing cache or expanding FastActivator to take parameters
58
-
DbContextdbContext=null;
59
-
60
-
// if there is an IOC dependency resolver configured then use that one to get the DbContext, this will allow sharing of context across multiple repositories if the IOC is configured that way
61
-
if(RepositoryDependencyResolver.Current!=null)
69
+
else
62
70
{
63
-
try
64
-
{
65
-
dbContext=dbContextType==null
71
+
// if there is an IOC dependency resolver configured then use that one to get the DbContext, this will allow sharing of context across multiple repositories if the IOC is configured that way
0 commit comments