次の方法で共有


PropertiesConfigurationBuilder.HaveMaxLength(Int32) メソッド

定義

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

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

パラメーター

maxLength
Int32

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

戻り値

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

適用対象