Share via


RelationalModelBuilderExtensions.CanSetMaxIdentifierLength 메서드

정의

저장소 식별자에 허용되는 최대 길이를 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

public static bool CanSetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, int? length, bool fromDataAnnotation = false);
static member CanSetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * Nullable<int> * bool -> bool
<Extension()>
Public Function CanSetMaxIdentifierLength (modelBuilder As IConventionModelBuilder, length As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Boolean

매개 변수

modelBuilder
IConventionModelBuilder

모델 작성기입니다.

length
Nullable<Int32>

설정할 값입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

true 저장소 식별자에 허용되는 최대 길이를 설정할 수 있으면 입니다.

설명

자세한 내용 과 예제는 엔터티 형식 및 관계 모델링 을 참조하세요.

적용 대상