Share via


MutablePropertyExtensions.SetMaxLength メソッド

定義

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

public static void SetMaxLength (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? maxLength);
static member SetMaxLength : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetMaxLength (property As IMutableProperty, maxLength As Nullable(Of Integer))

パラメーター

property
IMutableProperty

の最大長を設定する プロパティ。

maxLength
Nullable<Int32>

このプロパティで許可されるデータの最大長。

適用対象