public static DataTable ExecuteDataTable(string spName, object parameters) { using (Connection cn = Database.Open()) { DataTable table = SqlServer.ExecuteDataTable(spName, parameters, cn); cn.Complete(); return(table); } }
public static DataTable ExecuteDataTable(string spName, object parameters, Connection cn) { return(SqlServer.ExecuteDataTable(spName, parameters, cn)); }