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 インスタンス。
注釈
これを呼び出しても、構成後は効果がありません。 プロパティに長さのファセットがない場合、このメソッドは をスローします。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework