RelationalPropertyBuilderExtensions.CanSetComment 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| CanSetComment(IConventionPropertyBuilder, Object, Boolean) |
返回一个值,该值指示是否可以将给定值设置为列的注释。 |
| CanSetComment(IConventionPropertyBuilder, String, Boolean) |
返回一个值,该值指示是否可以将给定值设置为列的注释。 |
CanSetComment(IConventionPropertyBuilder, Object, Boolean)
返回一个值,该值指示是否可以将给定值设置为列的注释。
public static bool CanSetComment(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, object comment, bool fromDataAnnotation = false);
static member CanSetComment : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * obj * bool -> bool
<Extension()>
Public Function CanSetComment (propertyBuilder As IConventionPropertyBuilder, comment As Object, Optional fromDataAnnotation As Boolean = false) As Boolean
参数
- propertyBuilder
- IConventionPropertyBuilder
要配置的属性的生成器。
- comment
- Object
列的注释。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定了配置。
返回
适用于
CanSetComment(IConventionPropertyBuilder, String, Boolean)
返回一个值,该值指示是否可以将给定值设置为列的注释。
public static bool CanSetComment(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string? comment, bool fromDataAnnotation = false);
public static bool CanSetComment(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string comment, bool fromDataAnnotation = false);
static member CanSetComment : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * bool -> bool
<Extension()>
Public Function CanSetComment (propertyBuilder As IConventionPropertyBuilder, comment As String, Optional fromDataAnnotation As Boolean = false) As Boolean
参数
- propertyBuilder
- IConventionPropertyBuilder
要配置的属性的生成器。
- comment
- String
列的注释。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定了配置。
返回
注解
有关详细信息和示例,请参阅 建模实体类型和关系 。