Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static DataTable ExecuteStoredProcedure(String ProcedureName, Dictionary <String, Object> parameters)
 {
     return(DataSupport.ExecuteStoredProcedure(ProcedureName, parameters));
 }