Пример #1
0
 internal static void AddExceptionData(Exception exception, IEDMXNamedMember namedMember)
 {
     try
     {
         if (namedMember != null && exception != null)
         {
             if (!exception.Data.Contains("EDMXType"))
             {
                 exception.Data.Add("EDMXType", namedMember.GetType().Name);
             }
             if (!exception.Data.Contains("EDMXObjectName"))
             {
                 string objectName = namedMember.FullName;
                 if (string.IsNullOrEmpty(objectName))
                 {
                     objectName = namedMember.Name;
                 }
                 exception.Data.Add("EDMXObjectName", objectName);
             }
         }
     }
     catch { }
 }
Пример #2
0
 internal static void AddExceptionData(Exception exception, IEDMXNamedMember namedMember)
 {
     try
     {
         if (namedMember != null && exception != null)
         {
             if (!exception.Data.Contains("EDMXType"))
             {
                 exception.Data.Add("EDMXType", namedMember.GetType().Name);
             }
             if (!exception.Data.Contains("EDMXObjectName"))
             {
                 string objectName = namedMember.FullName;
                 if (string.IsNullOrEmpty(objectName))
                 {
                     objectName = namedMember.Name;
                 }
                 exception.Data.Add("EDMXObjectName", objectName);
             }
         }
     }
     catch { }
 }