static DbContext getDbContext <T>(string manageName) { var dbLocation = new CRL.DBLocation() { DataAccessType = DataAccessType.Default, ManageType = typeof(T), ManageName = manageName }; var helper = SettingConfig.GetDBAccessBuild(dbLocation).GetDBHelper(); var dbContext = new DbContext(helper, dbLocation); return(dbContext); }
DbContextInner getDbContext(string manageName) { var dbLocation = new CRL.DBLocation() { DataAccessType = DataAccessType.Default, ManageType = GetType(), ManageName = manageName }; var helper = DBConfigRegister.GetDBHelper(dbLocation); var dbContext = new DbContextInner(helper, dbLocation); return(dbContext); }
DbContext getDbContext() { var dbLocation = new CRL.DBLocation() { DataAccessType = DataAccessType.Read, ManageType = typeof(T) }; var helper = SettingConfig.GetDbAccess(dbLocation); var dbContext = new DbContext(helper, dbLocation); return(dbContext); }