RelationalValueGenerationConvention Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Convention qui configure la génération de valeurs de magasin comme OnAdd sur les propriétés qui font partie de la clé primaire et qui ne fait pas partie des clés étrangères ou qui ont été configurées pour avoir une valeur par défaut de base de données. Il configure également les propriétés comme si elles étaient configurées en tant que OnAddOrUpdate colonnes calculées.
[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalValueGenerationConvention = class
inherit ValueGenerationConvention
interface IPropertyAnnotationChangedConvention
interface IConvention
interface IEntityTypeAnnotationChangedConvention
type RelationalValueGenerationConvention = class
inherit ValueGenerationConvention
interface IPropertyAnnotationChangedConvention
interface IConvention
type RelationalValueGenerationConvention = class
inherit ValueGenerationConvention
interface IPropertyAnnotationChangedConvention
interface IConvention
interface IEntityTypeAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IEntityTypeAnnotationChangedConvention, IPropertyAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IPropertyAnnotationChangedConvention
- Héritage
- Dérivé
- Attributs
- Implémente
Remarques
Pour plus d’informations et d’exemples, consultez les conventions de génération de modèles et la génération de valeurs EF Core .
Constructeurs
| Nom | Description |
|---|---|
| RelationalValueGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
Crée une instance de RelationalValueGenerationConvention. |
Propriétés
| Nom | Description |
|---|---|
| Dependencies |
Dépendances pour ce service. (Hérité de ValueGenerationConvention) |
| RelationalDependencies |
Dépendances spécifiques au fournisseur relationnel pour ce service. |