Share via


RelationalPropertyExtensions.GetDefaultValueSql Method

Definition

Overloads

GetDefaultValueSql(IProperty)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

GetDefaultValueSql(IReadOnlyProperty)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

GetDefaultValueSql(IProperty, StoreObjectIdentifier)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

GetDefaultValueSql(IReadOnlyProperty, StoreObjectIdentifier)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

GetDefaultValueSql(IProperty)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

public static string GetDefaultValueSql (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IProperty -> string
<Extension()>
Public Function GetDefaultValueSql (property As IProperty) As String

Parameters

property
IProperty

The property.

Returns

The SQL expression that is used as the default value for the column this property is mapped to.

Applies to

GetDefaultValueSql(IReadOnlyProperty)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

public static string? GetDefaultValueSql (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> string
<Extension()>
Public Function GetDefaultValueSql (property As IReadOnlyProperty) As String

Parameters

property
IReadOnlyProperty

The property.

Returns

The SQL expression that is used as the default value for the column this property is mapped to.

Applies to

GetDefaultValueSql(IProperty, StoreObjectIdentifier)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

public static string GetDefaultValueSql (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultValueSql (property As IProperty, ByRef storeObject As StoreObjectIdentifier) As String

Parameters

property
IProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the table-like store object containing the column.

Returns

The SQL expression that is used as the default value for the column this property is mapped to.

Applies to

GetDefaultValueSql(IReadOnlyProperty, StoreObjectIdentifier)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

public static string? GetDefaultValueSql (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultValueSql (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As String

Parameters

property
IReadOnlyProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the table-like store object containing the column.

Returns

The SQL expression that is used as the default value for the column this property is mapped to.

Applies to