ConventionTypeConfiguration.Ignore Method

Definition

Overloads

Ignore(String)

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.

Ignore(PropertyInfo)

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

Ignore(String)

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

public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration Ignore (string propertyName);
member this.Ignore : string -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration
Public Function Ignore (propertyName As String) As ConventionTypeConfiguration

Parameters

propertyName
String

The name of the property to be configured.

Returns

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

Remarks

Calling this will have no effect if the property does not exist.

Applies to

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 Ignore ();
member this.Ignore : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration
Public Function Ignore () As ConventionTypeConfiguration

Returns

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

Applies to

Ignore(PropertyInfo)

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

public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration Ignore (System.Reflection.PropertyInfo propertyInfo);
member this.Ignore : System.Reflection.PropertyInfo -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration

Parameters

propertyInfo
PropertyInfo

The property to be configured.

Returns

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

Remarks

Calling this will have no effect if the property does not exist.

Applies to