public DataTable ExecuteDataTable(int startRecord, int maxRecords, string formatSql, params object[] paramValues) { string text = DbUtility.GetFormat(formatSql, paramValues); var cmd = this.PrepareCommand(text, CommandType.Text); return(this.ExecuteDataTable(cmd, startRecord, maxRecords)); }
public T ExecuteScalar <T>(string formatSql, params object[] paramValues) { string text = DbUtility.GetFormat(formatSql, paramValues); var cmd = this.PrepareCommand(text, CommandType.Text); return((T)Convert.ChangeType(this.ExecuteScalar(cmd), typeof(T))); }
public DbDataReader ExecuteReader(string formatSql, params object[] paramValues) { string text = DbUtility.GetFormat(formatSql, paramValues); var cmd = this.PrepareCommand(text, CommandType.Text); return(this.ExecuteReader(cmd)); }
public int ExecuteNonQuery(string formatSql, params object[] paramValues) { string text = DbUtility.GetFormat(formatSql, paramValues); var cmd = this.PrepareCommand(text, CommandType.Text); return(this.ExecuteNonQuery(cmd)); }