Sprache

ServicePropertyDiscoveryConvention Klasse

Definition

Eine Konvention, die Diensteigenschaften zu Entitätstypen hinzufügt.

[System.Runtime.CompilerServices.Nullable(0)]
public class ServicePropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
public class ServicePropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeMemberIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class ServicePropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeMemberIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class ServicePropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type ServicePropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
type ServicePropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface IEntityTypeMemberIgnoredConvention
    interface IModelFinalizedConvention
type ServicePropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface IEntityTypeMemberIgnoredConvention
    interface IModelFinalizingConvention
type ServicePropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
Public Class ServicePropertyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
Public Class ServicePropertyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeMemberIgnoredConvention, IModelFinalizedConvention
Public Class ServicePropertyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeMemberIgnoredConvention, IModelFinalizingConvention
Vererbung
ServicePropertyDiscoveryConvention
Attribute
Implementiert

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .

Konstruktoren

Name Beschreibung
ServicePropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies, Boolean)

Erstellt eine neue Instanz von ServicePropertyDiscoveryConvention.

ServicePropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies)

Erstellt eine neue Instanz von ServicePropertyDiscoveryConvention.

Eigenschaften

Name Beschreibung
Dependencies

Abhängigkeiten für diesen Dienst.

UseAttributes

Ein Wert, der angibt, ob die Konvention Attribute verwendet, die für die Member gefunden werden.

Methoden

Name Beschreibung
DiscoverServiceProperties(IConventionTypeBaseBuilder, IConventionContext)

Ermittelt Eigenschaften für den angegebenen Strukturtyp.

GetMembers(IConventionTypeBase)

Gibt die CLR-Elemente aus dem angegebenen Typ zurück, der beim Ermitteln von Eigenschaften berücksichtigt werden soll.

IsCandidateServiceProperty(MemberInfo, IConventionTypeBase, IParameterBindingFactory)

Gibt einen Wert zurück, der angibt, ob das angegebene Element ein Diensteigenschaftskandidat ist.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wird aufgerufen, nachdem dem Modell ein Entitätstyp hinzugefügt wurde.

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

Wird aufgerufen, nachdem sich der Basistyp eines Entitätstyps geändert hat.

ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

Wird aufgerufen, nachdem ein Entitätstypelement ignoriert wurde.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, nachdem ein Modell abgeschlossen wurde.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, wenn ein Modell abgeschlossen wird.

Gilt für: