public static TDataContext Get <TDataContext>(this IDataContextScope dataContextScope, string connectionString) where TDataContext : DataContext
 {
     return(dataContextScope.DataContexts.Get <TDataContext>(connectionString));
 }
Exemple #2
0
 public override void OnActionExecuting(System.Web.Http.Controllers.HttpActionContext actionContext)
 {
     _dataContextScope = DataEngine.Main.DataContextScopeFactory.Create();
 }
 public static TDataContext Get <TDataContext>(this IDataContextScope dataContextScope) where TDataContext : DataContext
 {
     return(dataContextScope.DataContexts.Get <TDataContext>());
 }
Exemple #4
0
 public override void OnActionExecuting(ActionExecutingContext actionContext)
 {
     _dataContextScope = DataEngine.Main.DataContextScopeFactory.Create();
 }