RelationalPrimitiveCollectionBuilderExtensions.HasComment 方法

定义

重载

HasComment(PrimitiveCollectionBuilder, String)

配置要应用于列的注释

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

配置要应用于列的注释

HasComment(PrimitiveCollectionBuilder, String)

Source:
RelationalPrimitiveCollectionBuilderExtensions.cs
Source:
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)

Source:
RelationalPrimitiveCollectionBuilderExtensions.cs
Source:
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

列的注释。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例,请参阅 为实体类型和关系建模

适用于