EntityTypeAttributeConventionBase<TAttribute> Sınıf

Tanım

Varlık türünde belirtilen bir özniteliğe dayalı yapılandırma gerçekleştiren kurallar için temel tür.

public abstract class EntityTypeAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention where TAttribute : Attribute
type EntityTypeAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
    interface IEntityTypeAddedConvention
    interface IConvention
Public MustInherit Class EntityTypeAttributeConventionBase(Of TAttribute)
Implements IEntityTypeAddedConvention

Tür Parametreleri

TAttribute

Aranacak öznitelik türü.

Devralma
EntityTypeAttributeConventionBase<TAttribute>
Türetilmiş
Uygulamalar

Açıklamalar

Daha fazla bilgi için bkz. model yapı kuralları .

Oluşturucular

EntityTypeAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

EntityTypeAttributeConventionBase<TAttribute> öğesinin yeni bir örneğini oluşturur.

Özellikler

Dependencies

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

Yöntemler

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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.

Şunlara uygulanır