Compartir a través de


SqlServerModelExtensions.SetValueGenerationStrategy Método

Definición

Sobrecargas

SetValueGenerationStrategy(IMutableModel, Nullable<SqlServerValueGenerationStrategy>)

Establece el SqlServerValueGenerationStrategy objeto que se va a usar para las propiedades de las claves del modelo que no tienen una estrategia establecida explícitamente.

SetValueGenerationStrategy(IConventionModel, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Establece el SqlServerValueGenerationStrategy objeto que se va a usar para las propiedades de las claves del modelo que no tienen una estrategia establecida explícitamente.

SetValueGenerationStrategy(IMutableModel, Nullable<SqlServerValueGenerationStrategy>)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

Establece el SqlServerValueGenerationStrategy objeto que se va a usar para las propiedades de las claves del modelo que no tienen una estrategia establecida explícitamente.

public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> -> unit
<Extension()>
Public Sub SetValueGenerationStrategy (model As IMutableModel, value As Nullable(Of SqlServerValueGenerationStrategy))

Parámetros

model
IMutableModel

Modelo.

value
Nullable<SqlServerValueGenerationStrategy>

Valor que se va a establecer.

Se aplica a

SetValueGenerationStrategy(IConventionModel, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

Establece el SqlServerValueGenerationStrategy objeto que se va a usar para las propiedades de las claves del modelo que no tienen una estrategia establecida explícitamente.

public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, bool fromDataAnnotation = false);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> unit
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Sub SetValueGenerationStrategy (model As IConventionModel, value As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetValueGenerationStrategy (model As IConventionModel, value As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As Nullable(Of SqlServerValueGenerationStrategy)

Parámetros

model
IConventionModel

Modelo.

value
Nullable<SqlServerValueGenerationStrategy>

Valor que se va a establecer.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

El valor configurado.

Se aplica a