RelationalPropertyBuilderExtensions.HasComment Yöntem

Tanım

Aşırı Yüklemeler

HasComment(PropertyBuilder, String)

Sütuna uygulanacak bir açıklama yapılandırıyor

HasComment(IConventionPropertyBuilder, String, Boolean)

Sütuna uygulanacak bir açıklama yapılandırıyor

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

Sütuna uygulanacak bir açıklama yapılandırıyor

HasComment(PropertyBuilder, String)

Sütuna uygulanacak bir açıklama yapılandırıyor

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

Parametreler

propertyBuilder
PropertyBuilder

Yapılandırılan özelliğin oluşturucusu.

comment
String

Sütunun açıklaması.

Döndürülenler

PropertyBuilder

Birden çok çağrının zincirlene kadar aynı oluşturucu örneği.

Açıklamalar

Daha fazla bilgi için bkz. Varlık türlerini ve ilişkilerini modelleme.

Şunlara uygulanır

HasComment(IConventionPropertyBuilder, String, Boolean)

Sütuna uygulanacak bir açıklama yapılandırıyor

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

Parametreler

propertyBuilder
IConventionPropertyBuilder

Yapılandırılan özelliğin oluşturucusu.

comment
String

Sütunun açıklaması.

fromDataAnnotation
Boolean

Yapılandırmanın veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Döndürülenler

IConventionPropertyBuilder

Yapılandırma uygulanmışsa aynı oluşturucu örneği, aksi null takdirde.

Açıklamalar

Daha fazla bilgi için bkz. Varlık türlerini ve ilişkilerini modelleme.

Şunlara uygulanır

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

Sütuna uygulanacak bir açıklama yapılandırıyor

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)

Tür Parametreleri

TProperty

Yapılandırılan özelliğin türü.

Parametreler

propertyBuilder
PropertyBuilder<TProperty>

Yapılandırılan özelliğin oluşturucusu.

comment
String

Sütunun açıklaması.

Döndürülenler

PropertyBuilder<TProperty>

Birden çok çağrının zincirlene kadar aynı oluşturucu örneği.

Açıklamalar

Daha fazla bilgi için bkz. Varlık türlerini ve ilişkilerini modelleme.

Şunlara uygulanır