Export (0) Print
Expand All

DbModelBuilder.Ignore Method (IEnumerable<Type>)

Entity Framework 5.0

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

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

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.
Show:
© 2014 Microsoft