public static IEnumerable <object[]> ResultObj(this SqlProc proc , Action <SqlField[]> onReadFields = null) { var cmd = proc.CreateCommand(); var helper = new DbDataMapHelper <object[]>(); return(DbGetHelper.ExecEnumerable(proc, helper, onReadFields: onReadFields)); }
public IList <T> Exec <T>(IList <T> list, Action <double> progress = null) where T : class { var helper = new DbDataMapHelper <T>(); DbGetHelper.ExecFill <T>(this, list, helper, progress); return(list); }
public IList <T> Exec <T>(IList <T> list, Action <double> progress = null) where T : class { Ai.Assert.IsTrue(list != null, "SqlProc.Exec list null error"); var helper = new DbDataMapHelper <T>(); DbGetHelper.ExecFill <T>(this, list, helper, progress); return(list); }
public static DbObject Exec(SqlProc proc, Action <double> progress = null) { var mapper = new DbObject(); mapper.Worker = DbGetHelper.ExecEnumerable(proc, mapper, progress).GetEnumerator(); if (mapper.Worker == null) { return(null); } return(mapper); }
public static DbObject Exec(SqlProc proc, Action <double> progress = null, bool withFirst = true) { var mapper = new DbObject(); mapper.Worker = DbGetHelper.ExecEnumerable(proc, mapper, progress).GetEnumerator(); if (mapper.Worker == null) { return(null); } if (withFirst && mapper.Worker.Current == null) { mapper.Worker.MoveNext(); } return(mapper); }
public bool ExecMap <T>(IList <T> list, IDataMapHelper <T> mapper, Action <double> progress = null) where T : class { return(DbGetHelper.ExecFill <T>(this, list, mapper, progress)); }
public IEnumerable <object[]> ExecEnum() { var helper = new DbDataMapHelper <object[]>(); return(DbGetHelper.ExecEnumerable(this, helper, null)); }