Delen via


MutablePropertyExtensions.SetScale Method

Definition

Sets 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 void SetScale (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? scale);
static member SetScale : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetScale (property As IMutableProperty, scale As Nullable(Of Integer))

Parameters

property
IMutableProperty

The property to set the scale of.

scale
Nullable<Int32>

The maximum number of decimal places that is allowed in this property.

Applies to