RelationalPropertyExtensions.SetComputedColumnSql Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetComputedColumnSql(IMutableProperty, String) |
Sets the SQL expression that is used as the computed value for the column this property is mapped to. |
SetComputedColumnSql(IConventionProperty, String, Boolean) |
Sets the SQL expression that is used as the computed value for the column this property is mapped to. |
SetComputedColumnSql(IMutableProperty, String)
Sets the SQL expression that is used as the computed value for the column this property is mapped to.
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)
Parameters
- property
- IMutableProperty
The property.
- value
- String
The value to set.
Applies to
SetComputedColumnSql(IConventionProperty, String, Boolean)
Sets the SQL expression that is used as the computed value for the column this property is mapped to.
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
Parameters
- property
- IConventionProperty
The property.
- value
- String
The value to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Entity Framework