次の方法で共有


ComplexTypePropertyBuilder.HasMaxLength(Int32) メソッド

定義

このプロパティに格納できるデータの最大長を構成します。 最大長は、配列プロパティ (プロパティを含む String ) でのみ設定できます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasMaxLength (int maxLength);
abstract member HasMaxLength : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
override this.HasMaxLength : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
Public Overridable Function HasMaxLength (maxLength As Integer) As ComplexTypePropertyBuilder

パラメーター

maxLength
Int32

プロパティで許可されるデータの最大長。 の値 -1 は、 プロパティに最大長がないことを示します。

戻り値

複数の構成呼び出しをチェーンできるように、同じビルダー インスタンス。

適用対象