RelationalComplexTypePropertyBuilderExtensions.HasComment 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
HasComment(ComplexTypePropertyBuilder, String) |
配置要应用于列的注释 |
HasComment<TProperty>(ComplexTypePropertyBuilder<TProperty>, String) |
配置要应用于列的注释 |
HasComment(ComplexTypePropertyBuilder, String)
配置要应用于列的注释
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder propertyBuilder, string? comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
<Extension()>
Public Function HasComment (propertyBuilder As ComplexTypePropertyBuilder, comment As String) As ComplexTypePropertyBuilder
参数
- propertyBuilder
- ComplexTypePropertyBuilder
要配置的属性的生成器。
- comment
- String
列的注释。
返回
同一生成器实例,以便可以链接多个调用。
注解
有关详细信息和示例,请参阅 为实体类型和关系建模 。
适用于
HasComment<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)
配置要应用于列的注释
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> HasComment<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> propertyBuilder, string? comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
<Extension()>
Public Function HasComment(Of TProperty) (propertyBuilder As ComplexTypePropertyBuilder(Of TProperty), comment As String) As ComplexTypePropertyBuilder(Of TProperty)
类型参数
- TProperty
要配置的属性的类型。
参数
- propertyBuilder
- ComplexTypePropertyBuilder<TProperty>
要配置的属性的生成器。
- comment
- String
列的注释。
返回
同一生成器实例,以便可以链接多个调用。
注解
有关详细信息和示例,请参阅 为实体类型和关系建模 。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈