src/EntityFramework/ModelConfiguration/EntityTypeConfiguration.cs
/// <summary>
///     Excludes a property from the model so that it will not be mapped to the database.
/// </summary>
/// <typeparam name="TProperty"> The type of the property to be ignored. </typeparam>
/// <param name="propertyExpression"> A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty </param>
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 .
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        [SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
        public EntityTypeConfiguration<TEntityType> Ignore<TProperty>(Expression<Func<TEntityType, TProperty>> propertyExpression)
        {
            Check.NotNull(propertyExpression, "propertyExpression");
            Configuration.Ignore(propertyExpression.GetSimplePropertyAccess().Single());
            return this;
        }
[ SuppressMessage ( " " , " " ) ] [ SuppressMessage ( " " , " " ) ] public EntityTypeConfiguration < TEntityType > Ignore < TProperty > ( Expression < Func < TEntityType , TProperty > > propertyExpression ) { Check . NotNull ( propertyExpression , " " ) ; Configuration . Ignore ( propertyExpression . GetSimplePropertyAccess ( ) . Single ( ) ) ; 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 .
propertyExpression
Expression<Func<TEntityType, TProperty>>
A lambda expression representing the property to be configured.
A lambda expression representing the property to be configured .
typeparam
The type of the property to be ignored.
The type of the property to be ignored .