Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public static int ExecuteText(string sql, params DbParameter[] parameters)
 {
     using var access = new DbAccess();
     return(access.ExecText(sql, parameters));
 }