KeyDiscoveryConvention Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Eine Konvention, die die Primärschlüsseleigenschaft für den Entitätstyp basierend auf den Namen sucht, wobei die Groß-/Kleinschreibung ignoriert wird:
- Id
- [Entitätsname] Id
public class KeyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPropertiesChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyUniquenessChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention
public class KeyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPropertiesChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyUniquenessChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
public class KeyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeMemberIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPropertiesChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyUniquenessChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
type KeyDiscoveryConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IPropertyAddedConvention
interface IKeyRemovedConvention
interface IEntityTypeBaseTypeChangedConvention
interface IPropertyFieldChangedConvention
interface IForeignKeyAddedConvention
interface IForeignKeyRemovedConvention
interface IForeignKeyPropertiesChangedConvention
interface IForeignKeyUniquenessChangedConvention
interface IForeignKeyOwnershipChangedConvention
type KeyDiscoveryConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IPropertyAddedConvention
interface IKeyRemovedConvention
interface IEntityTypeBaseTypeChangedConvention
interface IForeignKeyAddedConvention
interface IForeignKeyRemovedConvention
interface IForeignKeyPropertiesChangedConvention
interface IForeignKeyUniquenessChangedConvention
interface IForeignKeyOwnershipChangedConvention
interface ISkipNavigationForeignKeyChangedConvention
type KeyDiscoveryConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IPropertyAddedConvention
interface IKeyRemovedConvention
interface IEntityTypeBaseTypeChangedConvention
interface IEntityTypeMemberIgnoredConvention
interface IForeignKeyAddedConvention
interface IForeignKeyRemovedConvention
interface IForeignKeyPropertiesChangedConvention
interface IForeignKeyUniquenessChangedConvention
interface IForeignKeyOwnershipChangedConvention
interface ISkipNavigationForeignKeyChangedConvention
Public Class KeyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IForeignKeyAddedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyPropertiesChangedConvention, IForeignKeyRemovedConvention, IForeignKeyUniquenessChangedConvention, IKeyRemovedConvention, IPropertyAddedConvention, IPropertyFieldChangedConvention
Public Class KeyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IForeignKeyAddedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyPropertiesChangedConvention, IForeignKeyRemovedConvention, IForeignKeyUniquenessChangedConvention, IKeyRemovedConvention, IPropertyAddedConvention, ISkipNavigationForeignKeyChangedConvention
Public Class KeyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeMemberIgnoredConvention, IForeignKeyAddedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyPropertiesChangedConvention, IForeignKeyRemovedConvention, IForeignKeyUniquenessChangedConvention, IKeyRemovedConvention, IPropertyAddedConvention, ISkipNavigationForeignKeyChangedConvention
- Vererbung
-
KeyDiscoveryConvention
- Abgeleitet
- Implementiert
-
IConvention IEntityTypeAddedConvention IEntityTypeBaseTypeChangedConvention IForeignKeyAddedConvention IForeignKeyOwnershipChangedConvention IForeignKeyPropertiesChangedConvention IForeignKeyRemovedConvention IForeignKeyUniquenessChangedConvention IKeyRemovedConvention IPropertyAddedConvention IPropertyFieldChangedConvention ISkipNavigationForeignKeyChangedConvention IEntityTypeMemberIgnoredConvention
Hinweise
Wenn der Entitätstyp über eine Verweisnavigationseigenschaft verfügt, werden die entsprechenden Fremdschlüsseleigenschaften verwendet.
Wenn sich der Entitätstyp im Besitz einer Sammlungsnavigationseigenschaft befindet, wird ein zusammengesetzter Primärschlüssel mithilfe der Fremdschlüsseleigenschaften mit einer zusätzlichen Eigenschaft konfiguriert, die der obigen Namenskonvention entspricht.
Weitere Informationen und Beispiele finden Sie unter Modellerstellungskonventionen .
Konstruktoren
KeyDiscoveryConvention(ProviderConventionSetBuilderDependencies) |
Erstellt eine neue Instanz von KeyDiscoveryConvention. |
Eigenschaften
Dependencies |
Abhängigkeiten für diesen Dienst. |
Methoden
Gilt für:
Entity Framework