StructuralTypeConfiguration<TStructuralType>.Ignore<TProperty> Method

Entity Framework 5.0

Excludes a property from the model so that it will not be mapped to the database.

Namespace:  System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

public void Ignore<TProperty>(
	Expression<Func<TStructuralType, TProperty>> propertyExpression
)

Type Parameters

TProperty

The type of the property to be ignored.

Parameters

propertyExpression
Type: System.Linq.Expressions.Expression<Func<TStructuralType, TProperty>>

A lambda expression representing the property to be configured. For example, in C# t => t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty.

Show: