src/Shared/EntityFramework/ModelConfiguration/Configuration/Types/ConventionTypeConfiguration.cs
/// <summary>
/// Excludes a property from the model so that it will not be mapped to the database.
/// </summary>
/// <param name="propertyInfo"> The property to be configured. </param>
/// <returns>
/// The same <see cref="ConventionTypeConfiguration" /> instance so that multiple calls can be chained.
/// </returns>
/// <remarks>
/// Calling this will have no effect if the property does not exist.
/// </remarks>
Excludes a property from the model so that it will not be mapped to the database.
Excludes a property from the model so that it will not be mapped to the database .
public ConventionTypeConfiguration Ignore(PropertyInfo propertyInfo)
        {
            Check.NotNull(propertyInfo, "propertyInfo");
            ValidateConfiguration(ConfigurationAspect.Ignore);
            if (propertyInfo != null)
            {
                if (_entityTypeConfiguration != null)
                {
                    _entityTypeConfiguration().Ignore(propertyInfo);
                }
                if (_complexTypeConfiguration != null)
                {
                    _complexTypeConfiguration().Ignore(propertyInfo);
                }
            }
            return this;
        }
public ConventionTypeConfiguration Ignore ( PropertyInfo propertyInfo ) { Check . NotNull ( propertyInfo , " " ) ; ValidateConfiguration ( ConfigurationAspect . Ignore ) ; if ( propertyInfo != null ) { if ( _entityTypeConfiguration != null ) { _entityTypeConfiguration ( ) . Ignore ( propertyInfo ) ; } if ( _complexTypeConfiguration != null ) { _complexTypeConfiguration ( ) . Ignore ( propertyInfo ) ; } } return this ; }
Excludes a property from the model so that it will not be mapped to the database.
Excludes a property from the model so that it will not be mapped to the database .
The same  instance so that multiple calls can be chained.
The same instance so that multiple calls can be chained .
propertyInfo
PropertyInfo
The property to be configured.
The property to be configured .
remarks
Calling this will have no effect if the property does not exist.
Calling this will have no effect if the property does not exist .