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 { } }