DbModelBuilder.Ignore Method

 

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

NameDescription
System_CAPS_pubmethodIgnore(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.

System_CAPS_pubmethodIgnore<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.


DbModelBuilder.Ignore Method (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 DbModelBuilder Ignore(
	IEnumerable<Type> types
)

Parameters

types
Type: System.Collections.Generic.IEnumerable<Type>

The types to be excluded from the model.

Return Value

Type: System.Data.Entity.DbModelBuilder

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


DbModelBuilder.Ignore<T> Method ()

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

[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public virtual DbModelBuilder Ignore<T>()
where T : class

Return Value

Type: System.Data.Entity.DbModelBuilder

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

Type Parameters

T

The type to be excluded.