OwnedEntityTypeAttributeConvention Sınıf

Tanım

sahip olduğu varlık türlerini yapılandıran OwnedAttribute bir kural.

public class OwnedEntityTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.EntityTypeAttributeConventionBase<Microsoft.EntityFrameworkCore.OwnedAttribute>
type OwnedEntityTypeAttributeConvention = class
    inherit EntityTypeAttributeConventionBase<OwnedAttribute>
Public Class OwnedEntityTypeAttributeConvention
Inherits EntityTypeAttributeConventionBase(Of OwnedAttribute)
Devralma
OwnedEntityTypeAttributeConvention

Açıklamalar

Daha fazla bilgi için bkz. Model bina kuralları.

Oluşturucular

OwnedEntityTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

OwnedEntityTypeAttributeConvention öğesinin yeni bir örneğini oluşturur.

Özellikler

Dependencies

Bu hizmet için bağımlılıklar.

(Devralındığı yer: EntityTypeAttributeConventionBase<TAttribute>)

Yöntemler

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Modele bir varlık türü eklendikten sonra çağırılır.

(Devralındığı yer: EntityTypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, OwnedAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Bir özniteliği varsa modele bir varlık türü eklendikten sonra çağrılır.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Bir öznitelik varsa, modele bir varlık türü eklendikten sonra çağırılır.

(Devralındığı yer: EntityTypeAttributeConventionBase<TAttribute>)

Şunlara uygulanır