Compartir a través de


RelationalPropertyExtensions.SetComputedColumnSql Método

Definición

Sobrecargas

SetComputedColumnSql(IMutableProperty, String)

Establece la expresión SQL que se usa como valor calculado para la columna a la que se asigna esta propiedad.

SetComputedColumnSql(IConventionProperty, String, Boolean)

Establece la expresión SQL que se usa como valor calculado para la columna a la que se asigna esta propiedad.

SetComputedColumnSql(IMutableProperty, String)

Establece la expresión SQL que se usa como valor calculado para la columna a la que se asigna esta propiedad.

public static void SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string value);
public static void SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? value);
static member SetComputedColumnSql : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetComputedColumnSql (property As IMutableProperty, value As String)

Parámetros

property
IMutableProperty

Propiedad.

value
String

Valor que se va a establecer.

Se aplica a

SetComputedColumnSql(IConventionProperty, String, Boolean)

Establece la expresión SQL que se usa como valor calculado para la columna a la que se asigna esta propiedad.

public static void SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string value, bool fromDataAnnotation = false);
public static string SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string value, bool fromDataAnnotation = false);
public static string? SetComputedColumnSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? value, bool fromDataAnnotation = false);
static member SetComputedColumnSql : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
static member SetComputedColumnSql : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Sub SetComputedColumnSql (property As IConventionProperty, value As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetComputedColumnSql (property As IConventionProperty, value As String, Optional fromDataAnnotation As Boolean = false) As String

Parámetros

property
IConventionProperty

Propiedad.

value
String

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