Note

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

Access to this page requires authorization. You can try .

RelationalPropertyExtensions.GetColumnBaseName Method

Definition

Namespace:
Microsoft.EntityFrameworkCore
Assembly:
Microsoft.EntityFrameworkCore.Relational.dll
Package:
Microsoft.EntityFrameworkCore.Relational v5.0.0
Package:
Microsoft.EntityFrameworkCore.Relational v10.0.0
Package:
Microsoft.EntityFrameworkCore.Relational v6.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
GetColumnBaseName(IProperty)

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

GetColumnBaseName(IReadOnlyProperty)
Obsolete.

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

GetColumnBaseName(IProperty)

Source:
RelationalPropertyExtensions.cs

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

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

Parameters

property
IProperty

The property.

Returns

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

Applies to

GetColumnBaseName(IReadOnlyProperty)

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

Caution

Use GetColumnName

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

[System.Obsolete("Use GetColumnName")]
public static string GetColumnBaseName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
public static string GetColumnBaseName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
[<System.Obsolete("Use GetColumnName")>]
static member GetColumnBaseName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> string
static member GetColumnBaseName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> string
<Extension()>
Public Function GetColumnBaseName (property As IReadOnlyProperty) As String

Parameters

property
IReadOnlyProperty

The property.

Returns

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

Attributes

Applies to


Feedback

Was this page helpful?