PropertyExtensions.GetMaxLength(IProperty) メソッド

定義

このプロパティで許可されるデータの最大長を取得します。 たとえば、 プロパティが の String 場合、これは最大文字数です。

public static int? GetMaxLength (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetMaxLength : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Nullable<int>
<Extension()>
Public Function GetMaxLength (property As IProperty) As Nullable(Of Integer)

パラメーター

property
IProperty

最大長を取得する プロパティ。

戻り値

最大長。定義 null されている場合はなし。

適用対象