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