PropertyAttributeConventionBase<TAttribute> Sınıf

Tanım

Bir özelliğe uygulanan bir özniteliğe dayalı yapılandırma gerçekleştiren kurallar için temel tür.

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

Tür Parametreleri

TAttribute

Aranacak öznitelik türü.

Devralma
PropertyAttributeConventionBase<TAttribute>
Türetilmiş
Uygulamalar

Açıklamalar

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

Oluşturucular

PropertyAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

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

Özellikler

Dependencies

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

Yöntemler

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Varlık türüne bir Özellik eklendikten sonra çağırılır.

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

İlişkili CLR özelliği veya alanı üzerinde bir özniteliği olan varlık türüne bir Özellik eklendikten sonra çağırılır.

ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Bir özellik için yedekleme alanı değiştirildikten sonra çağırılır.

Şunlara uygulanır