Exemple #1
0
        internal static cvcxcapital_sysdataEntities CreateContext()
        {
            cvcxcapital_sysdataEntities db = CallContext.GetData("dbContext") as cvcxcapital_sysdataEntities;

            if (db != null)
            {
                return(db);
            }
            db = new cvcxcapital_sysdataEntities();
            CallContext.SetData("dbContext", db);
            return(db);
        }
Exemple #2
0
 public BaseDAL()
 {
     _dbContext = DBContextFactory.CreateContext();
 }