Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance EntityException with an ErrorContext instance and a given error message.
 /// </summary>
 internal static EntitySqlException Create(ErrorContext errCtx, string errorMessage, Exception innerException)
 {
     return(EntitySqlException.Create(errCtx.CommandText, errorMessage, errCtx.InputPosition, errCtx.ErrorContextInfo, errCtx.UseContextInfoAsResourceIdentifier, innerException));
 }
Esempio n. 2
0
 private void ESqlExceptionHandler(EntitySqlException ex)
 {
     Logger.ErrorException("An Entity SQL Exception Occurred Updating Entities", ex);
 }