src/Shared/EntityFramework/ModelConfiguration/Configuration/ModelConfiguration.cs
// <summary>Gets a value indicating whether the specified property is excluded from the model.</summary>
// <returns>true if the property  is excluded; otherwise, false.</returns>
// <param name="type">The type that the property belongs to.</param>
// <param name="propertyInfo">The property to be checked.</param>
Gets a value indicating whether the specified property is excluded from the model.
Gets a value indicating whether the specified property is excluded from the model .
public virtual bool IsIgnoredProperty(Type type, PropertyInfo propertyInfo)
        {
            Check.NotNull(type, "type");
            Check.NotNull(propertyInfo, "propertyInfo");
            while (type != null)
            {
                var structuralTypeConfiguration = GetStructuralTypeConfiguration(type);
                if (structuralTypeConfiguration != null
                    && structuralTypeConfiguration.IgnoredProperties.Any(p => p.IsSameAs(propertyInfo)))
                {
                    return true;
                }
                type = type.BaseType;
            }
            return false;
        }
public virtual bool IsIgnoredProperty ( Type type , PropertyInfo propertyInfo ) { Check . NotNull ( type , " " ) ; Check . NotNull ( propertyInfo , " " ) ; while ( type != null ) { var structuralTypeConfiguration = GetStructuralTypeConfiguration ( type ) ; if ( structuralTypeConfiguration != null && structuralTypeConfiguration . IgnoredProperties . Any ( p => p . IsSameAs ( propertyInfo ) ) ) { return true ; } type = type . BaseType ; } return false ; }
Gets a value indicating whether the specified property is excluded from the model.
Gets a value indicating whether the specified property is excluded from the model .
true if the property  is excluded; otherwise, false.
true if the property is excluded ; otherwise false .
type
Type
The type that the property belongs to.
The type that the property belongs to .
propertyInfo
PropertyInfo
The property to be checked.
The property to be checked .