PropertyDiscoveryConvention Sınıf

Tanım

CLR türü üzerinde skaler genel özelliklere karşılık gelen varlık türlerine özellikler ekleyen bir kural.

public class PropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
type PropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
Public Class PropertyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
Devralma
PropertyDiscoveryConvention
Uygulamalar

Açıklamalar

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

Oluşturucular

PropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies)

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

Özellikler

Dependencies

Bu hizmetin bağımlılıkları.

Yöntemler

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Varlık türünün temel türü değiştikten sonra çağrılır.

Şunlara uygulanır