RelationalPropertyBuilderExtensions.CanSetColumnName 方法

定义

重载

CanSetColumnName(IConventionPropertyBuilder, String, Boolean)

返回一个值,该值指示是否可以为 属性设置给定列。

CanSetColumnName(IConventionPropertyBuilder, String, StoreObjectIdentifier, Boolean)

返回一个值,该值指示是否可以为 属性设置特定表类似存储对象的给定列。

CanSetColumnName(IConventionPropertyBuilder, String, Boolean)

Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs

返回一个值,该值指示是否可以为 属性设置给定列。

public static bool CanSetColumnName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string name, bool fromDataAnnotation = false);
public static bool CanSetColumnName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string? name, bool fromDataAnnotation = false);
static member CanSetColumnName : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * bool -> bool
<Extension()>
Public Function CanSetColumnName (propertyBuilder As IConventionPropertyBuilder, name As String, Optional fromDataAnnotation As Boolean = false) As Boolean

参数

propertyBuilder
IConventionPropertyBuilder

要配置的属性的生成器。

name
String

列的名称。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

true 如果属性可以映射到给定列,则为 。

注解

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

适用于

CanSetColumnName(IConventionPropertyBuilder, String, StoreObjectIdentifier, Boolean)

Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs
Source:
RelationalPropertyBuilderExtensions.cs

返回一个值,该值指示是否可以为 属性设置特定表类似存储对象的给定列。

public static bool CanSetColumnName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string name, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
public static bool CanSetColumnName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string? name, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member CanSetColumnName : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * StoreObjectIdentifier * bool -> bool
<Extension()>
Public Function CanSetColumnName (propertyBuilder As IConventionPropertyBuilder, name As String, ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Boolean

参数

propertyBuilder
IConventionPropertyBuilder

要配置的属性的生成器。

name
String

列的名称。

storeObject
StoreObjectIdentifier

存储对象的标识符。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

true 如果属性可以映射到给定列,则为 。

注解

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

适用于