RelationalTypeMapping.WithPrecisionAndScale Method

Definition

Creates a copy of this mapping.

public virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping WithPrecisionAndScale (int? precision, int? scale);
abstract member WithPrecisionAndScale : Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
override this.WithPrecisionAndScale : Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overridable Function WithPrecisionAndScale (precision As Nullable(Of Integer), scale As Nullable(Of Integer)) As RelationalTypeMapping

Parameters

precision
Nullable<Int32>

The precision of data the property is configured to store, or null if no size is configured.

scale
Nullable<Int32>

The scale of data the property is configured to store, or null if no size is configured.

Returns

The newly created mapping.

Applies to