Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Return to top

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.

Return to top

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.

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

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.

Return to top
Show: