예제 #1
0
        public static void CompareSql(DbContext db, DbOperateBase ope, string sql)
        {
            DbOperateBase operate = (DbOperateBase)ope;
            var           comands = new DbOperateCommandCollection(operate.Executor);

            comands.NextCommand();

            var generatesql = ope.GenerateSql();

            CompareSql(sql, generatesql);
        }
예제 #2
0
 /// <inheritdoc/>
 internal override void RegisteOperate(DbOperateBase operate)
 {
     Operate    = operate;
     _Statement = operate.GenerateSql();
 }