OwnedAttributeConvention Sınıf

Tanım

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

public class OwnedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.OwnedAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type OwnedAttributeConvention = class
    inherit TypeAttributeConventionBase<OwnedAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class OwnedAttributeConvention
Inherits TypeAttributeConventionBase(Of OwnedAttribute)
Implements IComplexPropertyAddedConvention
Devralma
Uygulamalar

Açıklamalar

Daha fazla bilgi ve örnek için bkz. Model oluşturma kuralları .

Oluşturucular

OwnedAttributeConvention(ProviderConventionSetBuilderDependencies)

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

Özellikler

Dependencies

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

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

Yöntemler

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Tür benzeri bir nesneye karmaşık bir özellik eklendikten sonra çağrılır.

(Devralındığı yer: TypeAttributeConventionBase<TAttribute>)
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, OwnedAttribute, IConventionContext)

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

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

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

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

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

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

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

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

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

(Devralındığı yer: TypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Karmaşık türü bir varlık türüyle değiştirmeyi dener.

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

Şunlara uygulanır