Esempio n. 1
0
 public DataAccessAdapter(IConnStringWrapper connStr)
 {
     if (connStr == null)
     {
         throw new NullReferenceException("IConnStringWrapper must be initialized");
     }
     _dbContext = new NewsSiteDbContext(connStr.ConnectionName);
 }
Esempio n. 2
0
 public BaseUtils(IConnStringWrapper wrapper)
 {
     _connStringName = wrapper.ConnectionName;
 }
Esempio n. 3
0
 public DbUtils(IConnStringWrapper wrapper)
     : base(wrapper)
 {
     _connStringName = wrapper.ConnectionName;
 }