Beispiel #1
0
        private bool ExecProc(ISqlProc proc, int iFrom = 0, int iTake = 0)
        {
            Ai.Guard.Check(proc.CmdText.Length > 0, "SqlTable proc error");
            Ai.Guard.Check(Fields != null, "SqlTable Fields error");

            var fld = this.Fields;

            Action <SqlTableMapper, DbDataReader> parser = (map, dbReader) =>
            {
                fld         = SqlFieldArray.GetArray(dbReader);
                this.Fields = fld;
            };

            bool init = this.queryParam.Prepare(proc, parser, this.Timeout);

            Guard.Check(fld.Length > 0, "fld.Length error");

            return(init);
        }
Beispiel #2
0
 public virtual SqlField[] GetFields(DbDataReader dataReader)
 {
     return(SqlFieldArray.GetArray(dataReader));
 }