DbModelBuilder.Ignore Method

Definition

Overloads

Ignore(IEnumerable<Type>)

Excludes the specified type(s) from the model. This is used to remove types from the model that were added by convention during initial model discovery.

Ignore<T>()

Excludes a type from the model. This is used to remove types from the model that were added by convention during initial model discovery.

Ignore(IEnumerable<Type>)

Excludes the specified type(s) from the model. This is used to remove types from the model that were added by convention during initial model discovery.

public virtual System.Data.Entity.DbModelBuilder Ignore (System.Collections.Generic.IEnumerable<Type> types);
abstract member Ignore : seq<Type> -> System.Data.Entity.DbModelBuilder
override this.Ignore : seq<Type> -> System.Data.Entity.DbModelBuilder
Public Overridable Function Ignore (types As IEnumerable(Of Type)) As DbModelBuilder

Parameters

types
IEnumerable<Type>

The types to be excluded from the model.

Returns

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

Applies to

Ignore<T>()

Excludes a type from the model. This is used to remove types from the model that were added by convention during initial model discovery.

public virtual System.Data.Entity.DbModelBuilder Ignore<T> () where T : class;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public virtual System.Data.Entity.DbModelBuilder Ignore<T> () where T : class;
abstract member Ignore : unit -> System.Data.Entity.DbModelBuilder (requires 'T : null)
override this.Ignore : unit -> System.Data.Entity.DbModelBuilder (requires 'T : null)
Public Overridable Function Ignore(Of T As Class) () As DbModelBuilder

Type Parameters

T

The type to be excluded.

Returns

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

Attributes

Applies to