Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RelationalPropertyExtensions.GetColumnName Method

Definition

Namespace:
Microsoft.EntityFrameworkCore
Assembly:
Microsoft.EntityFrameworkCore.Relational.dll
Package:
Microsoft.EntityFrameworkCore.Relational v3.0.0
Package:
Microsoft.EntityFrameworkCore.Relational v3.1.0
Package:
Microsoft.EntityFrameworkCore.Relational v5.0.0
Package:
Microsoft.EntityFrameworkCore.Relational v6.0.0
Package:
Microsoft.EntityFrameworkCore.Relational v10.0.0
Package:
Microsoft.EntityFrameworkCore.Relational v7.0.0
Package:
Microsoft.EntityFrameworkCore.Relational v8.0.0
Package:
Microsoft.EntityFrameworkCore.Relational v9.0.0

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
GetColumnName(IProperty)
Obsolete.

Returns the name of the table column to which the property is mapped.

GetColumnName(IReadOnlyProperty)

Returns the name of the column to which the property would be mapped.

GetColumnName(IProperty, StoreObjectIdentifier)

Returns the name of the column to which the property is mapped for a particular table.

GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

Returns the name of the column to which the property is mapped for a particular table.

GetColumnName(IProperty)

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

Caution

Use the overload that takes a StoreObjectIdentifier

Returns the name of the table column to which the property is mapped.

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

Parameters

property
IProperty

The property.

Returns

The name of the table column to which the property is mapped.

Attributes

Applies to

GetColumnName(IReadOnlyProperty)

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

Returns the name of the column to which the property would be mapped.

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

Parameters

property
IReadOnlyProperty

The property.

Returns

The base name of the column to which the property would be mapped.

Applies to

GetColumnName(IProperty, StoreObjectIdentifier)

Source:
RelationalPropertyExtensions.cs

Returns the name of the column to which the property is mapped for a particular table.

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

Parameters

property
IProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the table-like store object containing the column.

Returns

The name of the column to which the property is mapped.

Applies to

GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

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

Returns the name of the column to which the property is mapped for a particular table.

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

Parameters

property
IReadOnlyProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the table-like store object containing the column.

Returns

The name of the column to which the property is mapped.

Applies to


Feedback

Was this page helpful?