다음을 통해 공유


RelationalPropertyBuilderExtensions.CanSetComment 메서드

정의

오버로드

CanSetComment(IConventionPropertyBuilder, Object, Boolean)

지정된 값을 열에 대한 주석으로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

CanSetComment(IConventionPropertyBuilder, String, Boolean)

지정된 값을 열에 대한 주석으로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

CanSetComment(IConventionPropertyBuilder, Object, Boolean)

지정된 값을 열에 대한 주석으로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

public static bool CanSetComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, object comment, bool fromDataAnnotation = false);
static member CanSetComment : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * obj * bool -> bool
<Extension()>
Public Function CanSetComment (propertyBuilder As IConventionPropertyBuilder, comment As Object, Optional fromDataAnnotation As Boolean = false) As Boolean

매개 변수

propertyBuilder
IConventionPropertyBuilder

구성 중인 속성에 대한 작성기입니다.

comment
Object

열에 대한 주석입니다.

fromDataAnnotation
Boolean

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

반환

true 지정된 값을 열의 기본값으로 설정할 수 있으면 입니다.

적용 대상

CanSetComment(IConventionPropertyBuilder, String, Boolean)

지정된 값을 열에 대한 주석으로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

public static bool CanSetComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string comment, bool fromDataAnnotation = false);
public static bool CanSetComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string? comment, bool fromDataAnnotation = false);
static member CanSetComment : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * bool -> bool
<Extension()>
Public Function CanSetComment (propertyBuilder As IConventionPropertyBuilder, comment As String, Optional fromDataAnnotation As Boolean = false) As Boolean

매개 변수

propertyBuilder
IConventionPropertyBuilder

구성 중인 속성에 대한 작성기입니다.

comment
String

열에 대한 주석입니다.

fromDataAnnotation
Boolean

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

반환

true 지정된 값을 열의 기본값으로 설정할 수 있으면 입니다.

설명

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

적용 대상