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