Auf Englisch lesen

Freigeben über


RelationalPropertyExtensions.GetColumnName Method

Definition

Overloads

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.

C#
public static string GetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
C#
[System.Obsolete("Use the overload that takes a StoreObjectIdentifier")]
public static string GetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Parameters

property
IProperty

The property.

Returns

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

Attributes

Applies to

Entity Framework Core 6.0 und andere Versionen
Produkt Versionen (Veraltet)
Entity Framework Core 3.0, 3.1 (5.0, 6.0)

GetColumnName(IReadOnlyProperty)

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

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

C#
public static string GetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);

Parameters

property
IReadOnlyProperty

The property.

Returns

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

Applies to

Entity Framework Core 9.0 und andere Versionen
Produkt Versionen
Entity Framework Core 7.0, 8.0, 9.0

GetColumnName(IProperty, StoreObjectIdentifier)

Source:
RelationalPropertyExtensions.cs

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

C#
public static string GetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);

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

Entity Framework Core 5.0
Produkt Versionen
Entity Framework Core 5.0

GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

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.

C#
public static string? GetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);

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

Entity Framework Core 9.0 und andere Versionen
Produkt Versionen
Entity Framework Core 6.0, 7.0, 8.0, 9.0