Ejemplo n.º 1
0
        public MySqlDbContext(string connectionString = "")
        {
            var dbFactory = new MySqlFactory();

            DbHelper.ConnectionString = connectionString;
            DbHelper.DbFactory        = dbFactory;
            DbBuilder           = new MySqlBuilder();
            DbBuilder.DbFactory = dbFactory;
        }
Ejemplo n.º 2
0
        public MySqlDbContext(string connectionString = "")
        {
            var dbFactory = new MySqlFactory();

            DbHelper.ConnectionString = connectionString;
            DbHelper.DbFactory        = dbFactory;
            DbBuilder               = new MySqlBuilder();
            DbBuilder.DbFactory     = dbFactory;
            DbBuilder.CurrentDbType = SmartDbTypes.MySql;
        }