public static Dictionary <String, DataRow> BuildIndex(String ProcedureName, String ColumnName, Dictionary <String, Object> param) { DataTable table = DataSupport.ExecuteStoredProcedure(ProcedureName, param); Dictionary <String, DataRow> index = new Dictionary <String, DataRow>(table.Rows.Count); foreach (DataRow Row in table.Rows) { index[Row[ColumnName].ToString()] = Row; } return(index); }
public static DataTable ExecuteStoredProcedure(String ProcedureName, Dictionary <String, Object> parameters) { return(DataSupport.ExecuteStoredProcedure(ProcedureName, parameters)); }