共用方式為


RelationalPrimitiveCollectionBuilderExtensions.HasComment 方法

定義

多載

HasComment(PrimitiveCollectionBuilder, String)

設定要套用至資料行的批註

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

設定要套用至資料行的批註

HasComment(PrimitiveCollectionBuilder, String)

來源:
RelationalPrimitiveCollectionBuilderExtensions.cs
來源:
RelationalPrimitiveCollectionBuilderExtensions.cs

設定要套用至資料行的批註

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

參數

primitiveCollectionBuilder
PrimitiveCollectionBuilder

要設定之屬性的產生器。

comment
String

資料行的批註。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

來源:
RelationalPrimitiveCollectionBuilderExtensions.cs
來源:
RelationalPrimitiveCollectionBuilderExtensions.cs

設定要套用至資料行的批註

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

類型參數

TProperty

正在設定之屬性的型別。

參數

primitiveCollectionBuilder
PrimitiveCollectionBuilder<TProperty>

要設定之屬性的產生器。

comment
String

資料行的批註。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於