TypeMappingConfigurationBuilder.HasMaxLength(Int32) メソッド

定義

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

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

パラメーター

maxLength
Int32

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

戻り値

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

適用対象