예제 #1
0
 public void TaskAddQuery(string parmSql, EnumsStructs.DbActionQueryComplete parmArrived)
 {
     var dbt = new EnumsStructs.DbTask();
     dbt.Sql = parmSql;
     dbt.TargetExec = parmArrived;
     _dbTasks.Add(dbt);
 }
예제 #2
0
 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))
 }
예제 #3
0
 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);
 }
예제 #4
0
 public static void ExecuteSql(EnumsStructs.DbActionQueryComplete p1, string parmConnString, string parmSql)
 {
     Exec(delegate(object o, Exception e) { p1((int)o, e); },
         false, parmConnString, parmSql);
 }