共用方式為


RelationalPropertyExtensions.SetColumnName 方法

定義

多載

SetColumnName(IMutableProperty, String)

設定屬性所對應的資料行。

SetColumnName(IConventionProperty, String, Boolean)

設定屬性所對應的資料行。

SetColumnName(IMutableProperty, String, StoreObjectIdentifier)

設定屬性對應至特定類似資料表的存放區物件的資料行。

SetColumnName(IConventionProperty, String, StoreObjectIdentifier, Boolean)

設定屬性對應至特定類似資料表的存放區物件的資料行。

SetColumnName(IMutableProperty, String)

設定屬性所對應的資料行。

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)

設定屬性所對應的資料行。

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

參數

property
IConventionProperty

屬性。

name
String

要設定的名稱。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

已設定的值。

適用於

SetColumnName(IMutableProperty, String, StoreObjectIdentifier)

設定屬性對應至特定類似資料表的存放區物件的資料行。

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)

設定屬性對應至特定類似資料表的存放區物件的資料行。

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

指出是否已使用資料批註指定組態。

傳回

已設定的值。

適用於