Beispiel #1
0
 /// <summary>
 /// 把数据表(DataTable)添加到字典里
 /// </summary>
 /// <param name="DictKey"></param>
 /// <param name="table"></param>
 private void AddDict(string DictKey, DataTable table)
 {
     if (!MapDict.ContainsKey(DictKey))
     {
         MapDict.Add(DictKey, table);
         AddIdList(DictKey, table);
     }
 }
Beispiel #2
0
 public void Map <T>(Func <T, HttpContext, ProblemDetails> func) where T : Exception
 {
     _mapDict.Add(typeof(T), (ex, context) => func((T)ex, context));
 }