Partilhar via


SqlServerPropertyExtensions.SetValueGenerationStrategy Método

Definição

Sobrecargas

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade de uma tabela específica.

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade .

SetValueGenerationStrategy(IMutableRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade de uma tabela específica.

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade .

SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade de uma tabela específica.

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

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade de uma tabela específica.

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade de uma tabela específica.

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)

Parâmetros

property
IMutableProperty

A propriedade.

value
Nullable<SqlServerValueGenerationStrategy>

A estratégia a ser usada.

storeObject
StoreObjectIdentifier

O identificador da tabela que contém a coluna.

Aplica-se a

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade .

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

Parâmetros

property
IMutableProperty

A propriedade.

value
Nullable<SqlServerValueGenerationStrategy>

A estratégia a ser usada.

Aplica-se a

SetValueGenerationStrategy(IMutableRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade de uma tabela específica.

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

Parâmetros

overrides
IMutableRelationalPropertyOverrides

A propriedade substitui.

value
Nullable<SqlServerValueGenerationStrategy>

A estratégia a ser usada.

Aplica-se a

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade .

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)

Parâmetros

property
IConventionProperty

A propriedade.

value
Nullable<SqlServerValueGenerationStrategy>

A estratégia a ser usada.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

O valor configurado.

Aplica-se a

SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade de uma tabela específica.

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)

Parâmetros

overrides
IConventionRelationalPropertyOverrides

A propriedade substitui.

value
Nullable<SqlServerValueGenerationStrategy>

A estratégia a ser usada.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

O valor configurado.

Aplica-se a

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

Define o SqlServerValueGenerationStrategy a ser usado para a propriedade de uma tabela específica.

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)

Parâmetros

property
IConventionProperty

A propriedade.

value
Nullable<SqlServerValueGenerationStrategy>

A estratégia a ser usada.

storeObject
StoreObjectIdentifier

O identificador da tabela que contém a coluna.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

O valor configurado.

Aplica-se a