public DbCommand(string dbKey, System.Data.Common.DbCommand dbCommand, Common.DbExecuteSqlEvent onExecuteSqlEvent, IDbSqlBuilder dbSqlBuilder) { this.OnExecuteSqlEvent = onExecuteSqlEvent; this.dbKey = dbKey; this.dbCommand = dbCommand; this.dbSqlBuilder = dbSqlBuilder; }
public static IDb Create(Common.DbConfigDatabaseInfo dbConfig, Common.DbExecuteSqlEvent dbExecuteSqlEvent) { IDb db = Create(dbConfig); if (db != null && dbExecuteSqlEvent != null) { db.OnDbExecuteSqlEvent += dbExecuteSqlEvent; } return(db); }