ConventionPrimitivePropertyConfiguration.HasMaxLength(Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した最大長を使用するようにプロパティを構成します。
public virtual System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration HasMaxLength(int maxLength);
abstract member HasMaxLength : int -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
override this.HasMaxLength : int -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Public Overridable Function HasMaxLength (maxLength As Integer) As ConventionPrimitivePropertyConfiguration
パラメーター
- maxLength
- Int32
プロパティの最大長。
戻り値
複数の呼び出しをチェーンできるように、同じ ConventionPrimitivePropertyConfiguration インスタンス。
注釈
これを呼び出しても、構成後は効果がありません。 プロパティに長さのファセットがない場合、このメソッドは をスローします。