RelationalPropertyExtensions.FindColumn Method

Definition

Returns the column corresponding to this property if it's mapped to the given table-like store object.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IColumnBase FindColumn (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
C#
public static Microsoft.EntityFrameworkCore.Metadata.IColumnBase? FindColumn (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 column to which the property is mapped.

Applies to

Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0