次の方法で共有


RelationalTypeMapping.WithPrecisionAndScale メソッド

定義

このマッピングのコピーを作成します。

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

パラメーター

precision
Nullable<Int32>

プロパティが格納するように構成されているデータの有効桁数。サイズが構成されていない場合は null。

scale
Nullable<Int32>

プロパティが格納するように構成されているデータのスケール。サイズが構成されていない場合は null。

戻り値

新しく作成されたマッピング。

適用対象