Share via


RelationalPropertyBuilderExtensions.HasComment 메서드

정의

오버로드

HasComment(PropertyBuilder, String)

열에 적용할 주석을 구성합니다.

HasComment(IConventionPropertyBuilder, String, Boolean)

열에 적용할 주석을 구성합니다.

HasComment<TProperty>(PropertyBuilder<TProperty>, String)

열에 적용할 주석을 구성합니다.

HasComment(PropertyBuilder, String)

열에 적용할 주석을 구성합니다.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string comment);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string? comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function HasComment (propertyBuilder As PropertyBuilder, comment As String) As PropertyBuilder

매개 변수

propertyBuilder
PropertyBuilder

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

comment
String

열에 대한 주석입니다.

반환

동일한 작성기가 여러 호출을 연결할 수 있도록 instance.

설명

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

적용 대상

HasComment(IConventionPropertyBuilder, String, Boolean)

열에 적용할 주석을 구성합니다.

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

매개 변수

propertyBuilder
IConventionPropertyBuilder

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

comment
String

열에 대한 주석입니다.

fromDataAnnotation
Boolean

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

반환

구성이 적용 null 된 경우 동일한 작성기가 instance. 그렇지 않으면 입니다.

설명

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

적용 대상

HasComment<TProperty>(PropertyBuilder<TProperty>, String)

열에 적용할 주석을 구성합니다.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasComment<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string comment);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasComment<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string? comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function HasComment(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), comment As String) As PropertyBuilder(Of TProperty)

형식 매개 변수

TProperty

구성되는 속성의 형식입니다.

매개 변수

propertyBuilder
PropertyBuilder<TProperty>

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

comment
String

열에 대한 주석입니다.

반환

동일한 작성기가 여러 호출을 연결할 수 있도록 instance.

설명

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

적용 대상