예제 #1
0
 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;
 }
예제 #2
0
        public static IDb Create(Common.DbConfigDatabaseInfo dbConfig, Common.DbExecuteSqlEvent dbExecuteSqlEvent)
        {
            IDb db = Create(dbConfig);

            if (db != null && dbExecuteSqlEvent != null)
            {
                db.OnDbExecuteSqlEvent += dbExecuteSqlEvent;
            }
            return(db);
        }