Share via


RelationalPropertyExtensions.GetScale Method

Definition

Overloads

GetScale(IProperty, StoreObjectIdentifier)

Gets the scale of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of decimal places.

GetScale(IReadOnlyProperty, StoreObjectIdentifier)

Gets the scale of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of decimal places.

GetScale(IProperty, StoreObjectIdentifier)

Gets the scale of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of decimal places.

public static int? GetScale (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetScale : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetScale (property As IProperty, ByRef storeObject As StoreObjectIdentifier) As Nullable(Of Integer)

Parameters

property
IProperty

The property.

storeObject
StoreObjectIdentifier

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

Returns

The scale, or null if none is defined.

Applies to

GetScale(IReadOnlyProperty, StoreObjectIdentifier)

Gets the scale of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of decimal places.

public static int? GetScale (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetScale : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetScale (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As Nullable(Of Integer)

Parameters

property
IReadOnlyProperty

The property.

storeObject
StoreObjectIdentifier

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

Returns

The scale, or null if none is defined.

Applies to