語言

RelationalPropertyExtensions.GetDefaultColumnName 方法

定義

多載

名稱 Description
GetDefaultColumnName(IProperty, StoreObjectIdentifier)

回傳屬性將映射到的預設欄位名稱。

GetDefaultColumnName(IReadOnlyProperty, StoreObjectIdentifier)

回傳屬性將映射到的預設欄位名稱。

GetDefaultColumnName(IProperty)
已淘汰.

回傳預設的表格欄位名稱,該欄位名稱將被映射到該屬性。

GetDefaultColumnName(IReadOnlyProperty)

回傳屬性將映射到的欄位的預設基底名稱

GetDefaultColumnName(IProperty, StoreObjectIdentifier)

來源:
RelationalPropertyExtensions.cs

回傳屬性將映射到的預設欄位名稱。

public static string GetDefaultColumnName(this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultColumnName : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultColumnName (property As IProperty, ByRef storeObject As StoreObjectIdentifier) As String

參數

property
IProperty

屬性。

storeObject
StoreObjectIdentifier

包含欄位的類表格儲存物件的識別碼。

傳回

屬性映射的預設欄位名稱。

適用於

GetDefaultColumnName(IReadOnlyProperty, StoreObjectIdentifier)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

回傳屬性將映射到的預設欄位名稱。

public static string? GetDefaultColumnName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
public static string GetDefaultColumnName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultColumnName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultColumnName (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As String

參數

property
IReadOnlyProperty

屬性。

storeObject
StoreObjectIdentifier

包含欄位的類表格儲存物件的識別碼。

傳回

屬性映射的預設欄位名稱。

適用於

GetDefaultColumnName(IProperty)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

警告

Use the overload that takes a StoreObjectIdentifier

回傳預設的表格欄位名稱,該欄位名稱將被映射到該屬性。

public static string GetDefaultColumnName(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use the overload that takes a StoreObjectIdentifier")]
public static string GetDefaultColumnName(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetDefaultColumnName : Microsoft.EntityFrameworkCore.Metadata.IProperty -> string
[<System.Obsolete("Use the overload that takes a StoreObjectIdentifier")>]
static member GetDefaultColumnName : Microsoft.EntityFrameworkCore.Metadata.IProperty -> string
<Extension()>
Public Function GetDefaultColumnName (property As IProperty) As String

參數

property
IProperty

屬性。

傳回

預設的表格欄位名稱,屬性會被映射到。

屬性

適用於

GetDefaultColumnName(IReadOnlyProperty)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

回傳屬性將映射到的欄位的預設基底名稱

public static string GetDefaultColumnName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetDefaultColumnName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> string
<Extension()>
Public Function GetDefaultColumnName (property As IReadOnlyProperty) As String

參數

property
IReadOnlyProperty

屬性。

傳回

屬性映射到的預設基欄名稱。

適用於