ConventionTypeConfiguration<T>.Ignore Method

Definition

Overloads

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.

Ignore()

Excludes this entity type from the model so that it will not be mapped to the database.

public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<T> Ignore ();
member this.Ignore : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<'T (requires 'T : null)>
Public Function Ignore () As ConventionTypeConfiguration(Of T)

Returns

The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.

Applies to

Ignore<TProperty>(Expression<Func<T,TProperty>>)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<T> Ignore<TProperty> (System.Linq.Expressions.Expression<Func<T,TProperty>> propertyExpression);
member this.Ignore : System.Linq.Expressions.Expression<Func<'T, 'Property>> -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<'T (requires 'T : null)>
Public Function Ignore(Of TProperty) (propertyExpression As Expression(Of Func(Of T, TProperty))) As ConventionTypeConfiguration(Of T)

Type Parameters

TProperty

The type of the property to be ignored.

Parameters

propertyExpression
Expression<Func<T,TProperty>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.

Attributes

Applies to