Пример #1
0
 public static T ExecuteText <T>(DbSession session, string sql, CommandBehavior behavior, params DbParameter[] parameters)
 {
     using var access = new DbAccess { Session = session };
     return(access.ExecText <T, DbParameter>(sql, behavior, parameters));
 }
Пример #2
0
 public static int ExecuteText(string sql, params DbParameter[] parameters)
 {
     using var access = new DbAccess();
     return(access.ExecText(sql, parameters));
 }
Пример #3
0
 public static T ExecuteProc <T>(DbSession session, string procName, params DbParameter[] parameters)
 {
     using var access = new DbAccess { Session = session };
     return(access.ExecProc <T, DbParameter>(procName, parameters));
 }
Пример #4
0
 public static void ExecuteProcAndFill(DbSession session, DataTable dataTable, string procName, params DbParameter[] parameters)
 {
     using var access = new DbAccess { Session = session };
     access.ExecProcAndFill(dataTable, procName, parameters);
 }
Пример #5
0
 public static int ExecuteProc(string procName, params DbParameter[] parameters)
 {
     using var access = new DbAccess();
     return(access.ExecProc(procName, parameters));
 }