Table of Contents

Interface ISqlQueryColumn

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Represents a column in a SQL query.

public interface ISqlQueryColumn : IColumnBase, IAnnotatable, IReadOnlyAnnotatable
Inherited Members

Remarks

See Executing raw SQL commands with EF Core for more information and examples.

Properties

PropertyMappings

Gets the property mappings.

IReadOnlyList<ISqlQueryColumnMapping> PropertyMappings { get; }

Property Value

IReadOnlyList<ISqlQueryColumnMapping>

SqlQuery

Gets the containing SQL query.

ISqlQuery SqlQuery { get; }

Property Value

ISqlQuery

Methods

FindColumnMapping(IReadOnlyEntityType)

Returns the property mapping for the given entity type.

ISqlQueryColumnMapping? FindColumnMapping(IReadOnlyEntityType entityType)

Parameters

entityType IReadOnlyEntityType

An entity type.

Returns

ISqlQueryColumnMapping

The property mapping or null if not found.

ToDebugString(MetadataDebugStringOptions, int)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

string ToDebugString(MetadataDebugStringOptions options = 0, int indent = 0)

Parameters

options MetadataDebugStringOptions

Options for generating the string.

indent int

The number of indent spaces to use before each new line.

Returns

string

A human-readable representation.