public DBContextExtendedBase(IBConfiguration config)
 {
     _config = config;
     if (_config == null || string.IsNullOrEmpty(_config.Connection._ConnectionString))
     {
         throw new Exception("Connection String cannot be an empty value");
     }
     SetContext(_config.DbType, _config.Connection);
 }
Esempio n. 2
0
 public UnitOfWork(IBConfiguration configuration)
 {
     _connection = new MySqlConnection(configuration.ConnectionString);
     _connection.Open();
     _transaction = _connection.BeginTransaction();
 }
 public DisciplineQuery(IBConfiguration configuration) : base(configuration)
 {
 }
Esempio n. 4
0
 public ExtendedRepository(IBConfiguration Config, string TableName) : base(Config)
 {
     _config    = Config;
     _tablename = TableName;
 }
 public StudentQuery(IBConfiguration configuration) : base(configuration)
 {
 }
Esempio n. 6
0
 protected QueryBase(IBConfiguration configuration)
 {
     Connection = new MySqlConnection(configuration.ConnectionString);
     Connection.Open();
 }
Esempio n. 7
0
 public SemesterQuery(IBConfiguration configuration) : base(configuration)
 {
 }