/// <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));
 }
 private void ESqlExceptionHandler(EntitySqlException ex)
 {
     Logger.ErrorException("An Entity SQL Exception Occurred Updating Entities", ex);
 }