src/Shared/EntityFramework/Internal/Validation/EntityValidatorBuilder.cs
// <summary>
// Builds an <see cref="EntityValidator" /> for the given <paramref name="entityEntry" />.
// </summary>
// <param name="entityEntry"> The entity entry to build the validator for. </param>
// <returns>
// <see cref="EntityValidator" /> for the given <paramref name="entityEntry" /> . Possibly null if no validation has been specified for this entity type.
// </returns>
Builds an  for the given .
Builds an for the given .
public virtual EntityValidator BuildEntityValidator(InternalEntityEntry entityEntry)
        {
            DebugCheck.NotNull(entityEntry);
            return BuildTypeValidator(
                entityEntry.EntityType,
                entityEntry.EdmEntityType.Properties,
                entityEntry.EdmEntityType.NavigationProperties,
                (propertyValidators, typeLevelValidators) =>
                new EntityValidator(propertyValidators, typeLevelValidators));
        }
public virtual EntityValidator BuildEntityValidator ( InternalEntityEntry entityEntry ) { DebugCheck . NotNull ( entityEntry ) ; return BuildTypeValidator ( entityEntry . EntityType , entityEntry . EdmEntityType . Properties , entityEntry . EdmEntityType . NavigationProperties , ( propertyValidators , typeLevelValidators ) => new EntityValidator ( propertyValidators , typeLevelValidators ) ) ; }
Builds an  for the given .
Builds an for the given .
for the given  . Possibly null if no validation has been specified for this entity type.
for the given . Possibly null if no validation has been specified for this entity type .
entityEntry
InternalEntityEntry
The entity entry to build the validator for.
The entity entry to build the validator for .