RelationalPropertyExtensions.GetDefaultColumnName Method

Definition

Overloads

GetDefaultColumnName(IReadOnlyProperty, StoreObjectIdentifier)

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

GetDefaultColumnName(IProperty, StoreObjectIdentifier)

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

GetDefaultColumnName(IProperty)
Obsolete.

Returns the default table column name to which the property would be mapped.

GetDefaultColumnName(IReadOnlyProperty)

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

GetDefaultColumnName(IReadOnlyProperty, StoreObjectIdentifier)

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

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

C#
public static string GetDefaultColumnName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
C#
public static string? GetDefaultColumnName (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 default column name to which the property would be mapped.

Applies to

Entity Framework Core 9.0 och andra versioner
Produkt Versioner
Entity Framework Core 6.0, 7.0, 8.0, 9.0

GetDefaultColumnName(IProperty, StoreObjectIdentifier)

Source:
RelationalPropertyExtensions.cs

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

C#
public static string GetDefaultColumnName (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 default column name to which the property would be mapped.

Applies to

Entity Framework Core 5.0
Produkt Versioner
Entity Framework Core 5.0

GetDefaultColumnName(IProperty)

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

Caution

Use the overload that takes a StoreObjectIdentifier

Returns the default table column name to which the property would be mapped.

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

Parameters

property
IProperty

The property.

Returns

The default table column name to which the property would be mapped.

Attributes

Applies to

Entity Framework Core 6.0 och andra versioner
Produkt Versioner (Föråldrad)
Entity Framework Core 3.0, 3.1 (5.0, 6.0)

GetDefaultColumnName(IReadOnlyProperty)

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

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

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

Parameters

property
IReadOnlyProperty

The property.

Returns

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

Applies to

Entity Framework Core 9.0 och andra versioner
Produkt Versioner
Entity Framework Core 7.0, 8.0, 9.0