Condividi tramite


SqlServerPropertyExtensions.SetValueGenerationStrategy Metodo

Definizione

Overload

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà per una tabella specifica.

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà .

SetValueGenerationStrategy(IMutableRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà per una tabella specifica.

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà .

SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà per una tabella specifica.

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà per una tabella specifica.

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà per una tabella specifica.

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)

Parametri

property
IMutableProperty

Proprietà.

value
Nullable<SqlServerValueGenerationStrategy>

Strategia da usare.

storeObject
StoreObjectIdentifier

Identificatore della tabella contenente la colonna.

Si applica a

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà .

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))

Parametri

property
IMutableProperty

Proprietà.

value
Nullable<SqlServerValueGenerationStrategy>

Strategia da usare.

Si applica a

SetValueGenerationStrategy(IMutableRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà per una tabella specifica.

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))

Parametri

overrides
IMutableRelationalPropertyOverrides

La proprietà esegue l'override.

value
Nullable<SqlServerValueGenerationStrategy>

Strategia da usare.

Si applica a

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà .

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)

Parametri

property
IConventionProperty

Proprietà.

value
Nullable<SqlServerValueGenerationStrategy>

Strategia da usare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a

SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà per una tabella specifica.

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)

Parametri

overrides
IConventionRelationalPropertyOverrides

La proprietà esegue l'override.

value
Nullable<SqlServerValueGenerationStrategy>

Strategia da usare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

Imposta l'oggetto SqlServerValueGenerationStrategy da utilizzare per la proprietà per una tabella specifica.

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)

Parametri

property
IConventionProperty

Proprietà.

value
Nullable<SqlServerValueGenerationStrategy>

Strategia da usare.

storeObject
StoreObjectIdentifier

Identificatore della tabella contenente la colonna.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a