public static TDataContext Get <TDataContext>(this IDataContextScope dataContextScope, string connectionString) where TDataContext : DataContext { return(dataContextScope.DataContexts.Get <TDataContext>(connectionString)); }
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>()); }
public override void OnActionExecuting(ActionExecutingContext actionContext) { _dataContextScope = DataEngine.Main.DataContextScopeFactory.Create(); }