src/Shared/EntityFramework/ModelConfiguration/ComplexTypeConfiguration.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>
/// <returns> The same ComplexTypeConfiguration instance so that multiple calls can be chained. </returns>
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 ComplexTypeConfiguration<TComplexType> Ignore<TProperty>(Expression<Func<TComplexType, TProperty>> propertyExpression)
        {
            Check.NotNull(propertyExpression, "propertyExpression");
            Configuration.Ignore(propertyExpression.GetSimplePropertyAccess().Single());
            return this;
        }
[ SuppressMessage ( " " , " " ) ] [ SuppressMessage ( " " , " " ) ] public ComplexTypeConfiguration < TComplexType > Ignore < TProperty > ( Expression < Func < TComplexType , 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 .
The same ComplexTypeConfiguration instance so that multiple calls can be chained.
The same ComplexTypeConfiguration instance so that multiple calls can be chained .
propertyExpression
Expression<Func<TComplexType, 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 .