Table of Contents

Class RelationalPropertyExtensions

Namespace
Microsoft.EntityFrameworkCore.Infrastructure
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Relational extension methods for Microsoft.EntityFrameworkCore.Metadata.IProperty.

public static class RelationalPropertyExtensions
Inheritance
RelationalPropertyExtensions
Inherited Members

Methods

FormatColumns(IEnumerable<IReadOnlyProperty>, StoreObjectIdentifier)

Creates a comma-separated list of column names.

public static string FormatColumns(this IEnumerable<IReadOnlyProperty> properties, StoreObjectIdentifier storeObject)

Parameters

properties IEnumerable<IReadOnlyProperty>

The properties to format.

storeObject StoreObjectIdentifier

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

Returns

string

A comma-separated list of column names.

GetColumnNames(IEnumerable<IReadOnlyProperty>, in StoreObjectIdentifier)

Creates a list of column names.

public static IReadOnlyList<string>? GetColumnNames(this IEnumerable<IReadOnlyProperty> properties, in StoreObjectIdentifier storeObject)

Parameters

properties IEnumerable<IReadOnlyProperty>

The properties to format.

storeObject StoreObjectIdentifier

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

Returns

IReadOnlyList<string>

A list of column names.