src/Shared/EntityFramework/Internal/Validation/EntityValidatorBuilder.cs
// <summary>
// Builds a <see cref="PropertyValidator" /> for the given transient <paramref name="clrProperty" />.
// </summary>
// <param name="clrProperty"> The CLR property to build the validator for. </param>
// <returns>
// <see cref="PropertyValidator" /> for the given <paramref name="clrProperty" /> . Possibly null if no validation has been specified for this property.
// </returns>
Builds a  for the given transient .
Builds a for the given transient .
protected virtual PropertyValidator BuildPropertyValidator(PropertyInfo clrProperty)
        {
            DebugCheck.NotNull(clrProperty);
            var propertyValidators = BuildValidationAttributeValidators(_attributeProvider.GetAttributes(clrProperty));
            return propertyValidators.Count > 0
                       ? new PropertyValidator(clrProperty.Name, propertyValidators)
                       : null;
        }
protected virtual PropertyValidator BuildPropertyValidator ( PropertyInfo clrProperty ) { DebugCheck . NotNull ( clrProperty ) ; var propertyValidators = BuildValidationAttributeValidators ( _attributeProvider . GetAttributes ( clrProperty ) ) ; return propertyValidators . Count > 0 ? new PropertyValidator ( clrProperty . Name , propertyValidators ) : null ; }
Builds a  for the given transient .
Builds a for the given transient .
for the given  . Possibly null if no validation has been specified for this property.
for the given . Possibly null if no validation has been specified for this property .
clrProperty
PropertyInfo
The CLR property to build the validator for.
The CLR property to build the validator for .