Пример #1
0
 private static void UpdateDatabase()
 {
     using (var context = new DataAccessDbContext())
     {
         var schemaHandler = context.GetSchemaHandler();
         EnsureDB(schemaHandler);
     }
 }
Пример #2
0
        public FilmsController(DataAccessDbContext dbContext)
        {
            // string connectionString =
            // "server=localhost;port=3306;database=sakila;userid=root;pwd=joao000000;sslmode=none";

            // _dbContext = DataAccessDbContextFactory.Create(connectionString);

            _dbContext = dbContext;
        }
Пример #3
0
        public ReportGenerator()
        {
            this.MySqlData = new DataAccessDbContext();

            this.SQLiteData = new GenericRepository <Item>(new ItemExpensesDbEntities());
        }
Пример #4
0
 public ActorsController(DataAccessDbContext dbContext)
 {
     _dbContext = dbContext;
 }