private static void UpdateDatabase() { using (var context = new DataAccessDbContext()) { var schemaHandler = context.GetSchemaHandler(); EnsureDB(schemaHandler); } }
public FilmsController(DataAccessDbContext dbContext) { // string connectionString = // "server=localhost;port=3306;database=sakila;userid=root;pwd=joao000000;sslmode=none"; // _dbContext = DataAccessDbContextFactory.Create(connectionString); _dbContext = dbContext; }
public ReportGenerator() { this.MySqlData = new DataAccessDbContext(); this.SQLiteData = new GenericRepository <Item>(new ItemExpensesDbEntities()); }
public ActorsController(DataAccessDbContext dbContext) { _dbContext = dbContext; }