src/Shared/EntityFramework/Core/Metadata/Edm/EdmValidator.cs
// <summary>
// Invoke the event hook Add an error to the list
// </summary>
// <param name="errors"> The list of errors to add to </param>
// <param name="newError"> The new error to add </param>
Invoke the event hook Add an error to the list
Invoke the event hook Add an error to the list
private void AddError(List<EdmItemError> errors, EdmItemError newError)
        {
            var e = new ValidationErrorEventArgs(newError);
            OnValidationError(e);
            errors.Add(e.ValidationError);
        }
private void AddError ( List < EdmItemError > errors , EdmItemError newError ) { var e = new ValidationErrorEventArgs ( newError ) ; OnValidationError ( e ) ; errors . Add ( e . ValidationError ) ; }
Invoke the event hook Add an error to the list
Invoke the event hook Add an error to the list
// Create an event args object and call the event hook, the derived class may have changed // the validation error to some other object, in which case we add the validation error object // coming from the event args
errors
List<EdmItemError>
The list of errors to add to
The list of errors to add to
newError
EdmItemError
The new error to add
The new error to add