Example #1
0
 /// <summary>
 /// Initializes a new instance of the DbDalc with specified DALC factory, DB connection and command generator
 /// </summary>
 public DbDalc(IDbProviderFactory factory, IDbConnection connection, IDbCommandGenerator cmdGenerator)
 {
     DbFactory        = factory;
     Connection       = connection;
     CommandGenerator = cmdGenerator;
 }
Example #2
0
 private IDbCommandGenerator GetOrCreateCommandGenerator()
 {
     return(this.commandGenerator ?? (this.commandGenerator = this.CreateCommandGenerator()));
 }