Sprache

DatabaseGeneratedAttributeConvention Klasse

Definition

Eine Konvention, die eine Eigenschaft so konfiguriert, als OnAdd ob angegeben wird, OnAddOrUpdate wenn Computed angegeben Never oder mithilfe None einer DatabaseGeneratedAttributeIdentity .

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class DatabaseGeneratedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute>
public class DatabaseGeneratedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type DatabaseGeneratedAttributeConvention = class
    inherit PropertyAttributeConventionBase<DatabaseGeneratedAttribute>
type DatabaseGeneratedAttributeConvention = class
    inherit PropertyAttributeConventionBase<DatabaseGeneratedAttribute>
Public Class DatabaseGeneratedAttributeConvention
Inherits PropertyAttributeConventionBase(Of DatabaseGeneratedAttribute)
Vererbung
DatabaseGeneratedAttributeConvention
Attribute

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .

Konstruktoren

Name Beschreibung
DatabaseGeneratedAttributeConvention(ProviderConventionSetBuilderDependencies)

Erstellt eine neue Instanz von DatabaseGeneratedAttributeConvention.

Eigenschaften

Name Beschreibung
Dependencies

Abhängigkeiten für diesen Dienst.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)

Methoden

Name Beschreibung
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Wird aufgerufen, nachdem eine komplexe Eigenschaft einem typähnlichen Objekt hinzugefügt wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wird aufgerufen, nachdem das Sicherungsfeld für eine komplexe Eigenschaft geändert wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wird aufgerufen, nachdem einer komplexen Eigenschaft ein Typ mit einem Attribut für die zugeordnete CLR-Eigenschaft oder das zugehörige Feld hinzugefügt wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, DatabaseGeneratedAttribute, MemberInfo, IConventionContext)

Wird aufgerufen, nachdem dem Entitätstyp eine Eigenschaft mit einem Attribut für die zugeordnete CLR-Eigenschaft oder das zugehörige Feld hinzugefügt wurde.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Wird aufgerufen, nachdem eine Eigenschaft dem Entitätstyp hinzugefügt wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wird aufgerufen, nachdem dem Entitätstyp eine Eigenschaft mit einem Attribut für die zugeordnete CLR-Eigenschaft oder das zugehörige Feld hinzugefügt wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wird aufgerufen, nachdem das Sicherungsfeld für eine Eigenschaft geändert wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)

Gilt für: