src/Shared/EntityFramework/Internal/Validation/ValidationProvider.cs
// <summary>
// Returns a validator to validate <paramref name="entityEntry" />.
// </summary>
// <param name="entityEntry"> Entity the validator is requested for. </param>
// <returns>
// <see cref="EntityValidator" /> to validate <paramref name="entityEntry" /> . Possibly null if no validation has been specified for the entity.
// </returns>
Returns a validator to validate .
Returns a validator to validate .
public virtual EntityValidator GetEntityValidator(InternalEntityEntry entityEntry)
        {
            DebugCheck.NotNull(entityEntry);
            var entityType = entityEntry.EntityType;
            EntityValidator validator = null;
            if (_entityValidators.TryGetValue(entityType, out validator))
            {
                return validator;
            }
            else
            {
                validator = _entityValidatorBuilder.BuildEntityValidator(entityEntry);
                _entityValidators[entityType] = validator;
                return validator;
            }
        }
public virtual EntityValidator GetEntityValidator ( InternalEntityEntry entityEntry ) { DebugCheck . NotNull ( entityEntry ) ; var entityType = entityEntry . EntityType ; EntityValidator validator = null ; if ( _entityValidators . TryGetValue ( entityType , out validator ) ) { return validator ; } else { validator = _entityValidatorBuilder . BuildEntityValidator ( entityEntry ) ; _entityValidators [ entityType ] = validator ; return validator ; } }
Returns a validator to validate .
Returns a validator to validate .
to validate  . Possibly null if no validation has been specified for the entity.
to validate . Possibly null if no validation has been specified for the entity .
entityEntry
InternalEntityEntry
Entity the validator is requested for.
Entity the validator is requested for .