다음을 통해 공유


LengthPropertyConfiguration.HasMaxLength(Nullable<Int32>) 메서드

정의

속성이 지정된 최대 길이를 갖도록 구성합니다.

public System.Data.Entity.ModelConfiguration.Configuration.LengthPropertyConfiguration HasMaxLength (Nullable<int> value);
member this.HasMaxLength : Nullable<int> -> System.Data.Entity.ModelConfiguration.Configuration.LengthPropertyConfiguration
Public Function HasMaxLength (value As Nullable(Of Integer)) As LengthPropertyConfiguration

매개 변수

value
Nullable<Int32>

속성의 최대 길이입니다. 'null'을 설정하면 속성에서 최대 길이 제한이 제거되고 데이터베이스 열에 기본 길이가 사용됩니다.

반환

여러 호출을 연결할 수 있도록 동일한 LengthPropertyConfiguration instance.

적용 대상