Поделиться через


NotMappedEntityTypeAttributeConvention Класс

Определение

Соглашение, которое игнорирует типы сущностей с NotMappedAttribute.

public class NotMappedEntityTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.EntityTypeAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.NotMappedAttribute>
type NotMappedEntityTypeAttributeConvention = class
    inherit EntityTypeAttributeConventionBase<NotMappedAttribute>
Public Class NotMappedEntityTypeAttributeConvention
Inherits EntityTypeAttributeConventionBase(Of NotMappedAttribute)
Наследование
NotMappedEntityTypeAttributeConvention

Комментарии

Дополнительные сведения и примеры см. в разделе Соглашения о создании моделей .

Конструкторы

NotMappedEntityTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

Создает новый экземпляр NotMappedEntityTypeAttributeConvention.

Свойства

Dependencies

Зависимости для этой службы.

(Унаследовано от EntityTypeAttributeConventionBase<TAttribute>)

Методы

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Вызывается после добавления типа сущности в модель.

(Унаследовано от EntityTypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, NotMappedAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Вызывается после добавления типа сущности в модель, если у нее есть атрибут .

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Вызывается после добавления типа сущности в модель, если у нее есть атрибут .

(Унаследовано от EntityTypeAttributeConventionBase<TAttribute>)

Применяется к