语言

RelationalPropertyExtensions.GetColumnName 方法

定义

重载

名称 说明
GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

返回为特定表映射属性的列的名称。

GetColumnName(IProperty)
已过时.

返回属性映射到的表列的名称。

GetColumnName(IReadOnlyProperty)

返回属性要映射到的列的名称。

GetColumnName(IProperty, StoreObjectIdentifier)

返回为特定表映射属性的列的名称。

GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

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

返回为特定表映射属性的列的名称。

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

参数

property
IReadOnlyProperty

属性。

storeObject
StoreObjectIdentifier

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

返回

属性映射到的列的名称。

适用于

GetColumnName(IProperty)

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

注意

Use the overload that takes a StoreObjectIdentifier

返回属性映射到的表列的名称。

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

参数

property
IProperty

属性。

返回

属性映射到的表列的名称。

特性

适用于

GetColumnName(IReadOnlyProperty)

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

返回属性要映射到的列的名称。

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

参数

property
IReadOnlyProperty

属性。

返回

要映射到该属性的列的基名称。

适用于

GetColumnName(IProperty, StoreObjectIdentifier)

Source:
RelationalPropertyExtensions.cs

返回为特定表映射属性的列的名称。

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

参数

property
IProperty

属性。

storeObject
StoreObjectIdentifier

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

返回

属性映射到的列的名称。

适用于