DbModelBuilder.Ignore - метод (IEnumerable<Type>)
[Эта страница относится к документации к Entity Framework 6. Последняя версия доступна в составе пакета Entity Framework NuGet. Дополнительные сведения об Entity Framework см. в разделе msdn.com/data/ef.]
Исключает указанные типы из модели. Используется для удаления из модели типов, добавленных по соглашению в процессе обнаружения исходной модели.
Пространство имен: System.Data.Entity
Сборка: EntityFramework (в EntityFramework.dll)
Синтаксис
'Декларация
Public Overridable Function Ignore ( _
types As IEnumerable(Of Type) _
) As DbModelBuilder
'Применение
Dim instance As DbModelBuilder
Dim types As IEnumerable(Of Type)
Dim returnValue As DbModelBuilder
returnValue = instance.Ignore(types)
public virtual DbModelBuilder Ignore(
IEnumerable<Type> types
)
public:
virtual DbModelBuilder^ Ignore(
IEnumerable<Type^>^ types
)
abstract Ignore :
types:IEnumerable<Type> -> DbModelBuilder
override Ignore :
types:IEnumerable<Type> -> DbModelBuilder
public function Ignore(
types : IEnumerable<Type>
) : DbModelBuilder
Параметры
- types
Тип: System.Collections.Generic.IEnumerable<Type>
Типы, исключаемые из модели.
Возвращаемое значение
Тип: System.Data.Entity.DbModelBuilder
Тот же экземпляр класса DbModelBuilder, чтобы соединить несколько вызовов в цепочку.