ConventionTypeConfiguration<T>.Ignore Method
Namespace:
System.Data.Entity.ModelConfiguration.Configuration
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Ignore() | Excludes this entity type from the model so that it will not be mapped to the database. |
![]() | Ignore<TProperty>(Expression<Func<T, TProperty>>) | Excludes a property from the model so that it will not be mapped to the database. |
ConventionTypeConfiguration<T>.Ignore Method ()
Excludes this entity type from the model so that it will not be mapped to the database.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<T>The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.
ConventionTypeConfiguration<T>.Ignore<TProperty> Method (Expression<Func<T, TProperty>>)
Excludes a property from the model so that it will not be mapped to the database.
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")] public ConventionTypeConfiguration<T> Ignore<TProperty>( Expression<Func<T, TProperty>> propertyExpression )
Parameters
- propertyExpression
-
Type:
System.Linq.Expressions.Expression<Func<T, TProperty>>
A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<T>The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.
Type Parameters
- TProperty
The type of the property to be ignored.