public void TaskAddQuery(string parmSql, EnumsStructs.DbActionQueryComplete parmArrived) { var dbt = new EnumsStructs.DbTask(); dbt.Sql = parmSql; dbt.TargetExec = parmArrived; _dbTasks.Add(dbt); }
public void TaskExecuteAll(EnumsStructs.DbTalkOptions p1) { // TODO: support DbTalkOptions foreach (EnumsStructs.DbTask dbt in _dbTasks) { Exec(delegate(object o, Exception e) { dbt.TargetExec((int)o, e); },false,_connStr, dbt.Sql); } ; //if(p1.HasFlags(DbTalkOptions.Async)) }
public static void ExecuteSproc(EnumsStructs.DbActionQueryComplete p1, string parmConnString, string parmSprocName, params object[] parmInput) { Exec(delegate(object o, Exception e) { p1((int)o, e); }, false, parmConnString, parmSprocName, parmInput); }
public static void ExecuteSql(EnumsStructs.DbActionQueryComplete p1, string parmConnString, string parmSql) { Exec(delegate(object o, Exception e) { p1((int)o, e); }, false, parmConnString, parmSql); }