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="propertyName"> The name of 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(string propertyName)
        {
            Check.NotEmpty(propertyName, "propertyName");
            var propertyInfo = _type.GetInstanceProperty(propertyName);
            if (propertyInfo == null)
            {
                throw new InvalidOperationException(Strings.NoSuchProperty(propertyName, _type.Name));
            }
            Ignore(propertyInfo);
            return this;
        }
public ConventionTypeConfiguration Ignore ( string propertyName ) { Check . NotEmpty ( propertyName , " " ) ; var propertyInfo = _type . GetInstanceProperty ( propertyName ) ; if ( propertyInfo == null ) { throw new InvalidOperationException ( Strings . NoSuchProperty ( propertyName , _type . Name ) ) ; } 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 .
propertyName
string
The name of the property to be configured.
The name of 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 .