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


OwnedEntityTypeAttributeConvention Класс

Определение

Соглашение, которое настраивает типы сущностей, которым принадлежит OwnedAttribute .

public class OwnedEntityTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.EntityTypeAttributeConventionBase<Microsoft.EntityFrameworkCore.OwnedAttribute>
type OwnedEntityTypeAttributeConvention = class
    inherit EntityTypeAttributeConventionBase<OwnedAttribute>
Public Class OwnedEntityTypeAttributeConvention
Inherits EntityTypeAttributeConventionBase(Of OwnedAttribute)
Наследование
OwnedEntityTypeAttributeConvention

Комментарии

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

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

OwnedEntityTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

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

Свойства

Dependencies

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

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

Методы

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

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

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

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

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

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

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