RelationalPropertyExtensions.GetPrecision Method

Definition

Overloads

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

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

GetPrecision(IProperty, StoreObjectIdentifier)

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

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

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

public static int? GetPrecision (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetPrecision : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetPrecision (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 precision, or null if none is defined.

Applies to

GetPrecision(IProperty, StoreObjectIdentifier)

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

public static int? GetPrecision (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetPrecision : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetPrecision (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 precision, or null if none is defined.

Applies to