SqlServerPropertyExtensions.SetValueGenerationStrategy Méthode
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.
Surcharges
SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)
Définit le SqlServerValueGenerationStrategy à utiliser pour la propriété d’une table particulière.
public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetValueGenerationStrategy (property As IMutableProperty, value As Nullable(Of SqlServerValueGenerationStrategy), ByRef storeObject As StoreObjectIdentifier)
Paramètres
- property
- IMutableProperty
Propriété.
Stratégie à utiliser.
- storeObject
- StoreObjectIdentifier
Identificateur de la table contenant la colonne.
S’applique à
SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)
Définit le SqlServerValueGenerationStrategy à utiliser pour la propriété .
public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> -> unit
<Extension()>
Public Sub SetValueGenerationStrategy (property As IMutableProperty, value As Nullable(Of SqlServerValueGenerationStrategy))
Paramètres
- property
- IMutableProperty
Propriété.
Stratégie à utiliser.
S’applique à
SetValueGenerationStrategy(IMutableRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>)
Définit le SqlServerValueGenerationStrategy à utiliser pour la propriété d’une table particulière.
public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides overrides, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> -> unit
<Extension()>
Public Sub SetValueGenerationStrategy (overrides As IMutableRelationalPropertyOverrides, value As Nullable(Of SqlServerValueGenerationStrategy))
Paramètres
- overrides
- IMutableRelationalPropertyOverrides
La propriété remplace.
Stratégie à utiliser.
S’applique à
SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, Boolean)
Définit le SqlServerValueGenerationStrategy à utiliser pour la propriété .
public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, bool fromDataAnnotation = false);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> unit
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Sub SetValueGenerationStrategy (property As IConventionProperty, value As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetValueGenerationStrategy (property As IConventionProperty, value As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As Nullable(Of SqlServerValueGenerationStrategy)
Paramètres
- property
- IConventionProperty
Propriété.
Stratégie à utiliser.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
Retours
Valeur configurée.
S’applique à
SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)
Définit le SqlServerValueGenerationStrategy à utiliser pour la propriété d’une table particulière.
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides overrides, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, bool fromDataAnnotation = false);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function SetValueGenerationStrategy (overrides As IConventionRelationalPropertyOverrides, value As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As Nullable(Of SqlServerValueGenerationStrategy)
Paramètres
- overrides
- IConventionRelationalPropertyOverrides
La propriété remplace.
Stratégie à utiliser.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
Retours
Valeur configurée.
S’applique à
SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)
Définit le SqlServerValueGenerationStrategy à utiliser pour la propriété d’une table particulière.
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * StoreObjectIdentifier * bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function SetValueGenerationStrategy (property As IConventionProperty, value As Nullable(Of SqlServerValueGenerationStrategy), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Nullable(Of SqlServerValueGenerationStrategy)
Paramètres
- property
- IConventionProperty
Propriété.
Stratégie à utiliser.
- storeObject
- StoreObjectIdentifier
Identificateur de la table contenant la colonne.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
Retours
Valeur configurée.