语言

RelationalPropertyExtensions.SetColumnName 方法

定义

重载

名称 说明
SetColumnName(IMutableProperty, String)

设置属性映射到的列。

SetColumnName(IConventionProperty, String, Boolean)

设置属性映射到的列。

SetColumnName(IMutableProperty, String, StoreObjectIdentifier)

设置属性映射到特定表类似存储对象的列。

SetColumnName(IConventionProperty, String, StoreObjectIdentifier, Boolean)

设置属性映射到特定表类似存储对象的列。

SetColumnName(IMutableProperty, String)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置属性映射到的列。

public static void SetColumnName(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? name);
public static void SetColumnName(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetColumnName (property As IMutableProperty, name As String)

参数

property
IMutableProperty

属性。

name
String

要设置的名称。

适用于

SetColumnName(IConventionProperty, String, Boolean)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置属性映射到的列。

public static string? SetColumnName(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, bool fromDataAnnotation = false);
public static void SetColumnName(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
public static string SetColumnName(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
<Extension()>
Public Function SetColumnName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String
<Extension()>
Public Sub SetColumnName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false)

参数

property
IConventionProperty

属性。

name
String

要设置的名称。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于

SetColumnName(IMutableProperty, String, StoreObjectIdentifier)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置属性映射到特定表类似存储对象的列。

public static void SetColumnName(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? name, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
public static void SetColumnName(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetColumnName (property As IMutableProperty, name As String, ByRef storeObject As StoreObjectIdentifier)

参数

property
IMutableProperty

属性。

name
String

要设置的名称。

storeObject
StoreObjectIdentifier

包含列的类似表的存储对象的标识符。

适用于

SetColumnName(IConventionProperty, String, StoreObjectIdentifier, Boolean)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

设置属性映射到特定表类似存储对象的列。

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

参数

property
IConventionProperty

属性。

name
String

要设置的名称。

storeObject
StoreObjectIdentifier

包含列的类似表的存储对象的标识符。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于