Interface ISqlQueryMapping
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Represents entity type mapping to a SQL query.
public interface ISqlQueryMapping : ITableMappingBase, IAnnotatable, IReadOnlyAnnotatable
- Inherited Members
Remarks
See Executing raw SQL commands with EF Core for more information and examples.
Properties
ColumnMappings
Gets the properties mapped to columns on the target SQL query.
IEnumerable<ISqlQueryColumnMapping> ColumnMappings { get; }
Property Value
IsDefaultSqlQueryMapping
Gets the value indicating whether this is the SQL query mapping that should be used when the entity type is queried.
bool IsDefaultSqlQueryMapping { get; set; }
Property Value
SqlQuery
Gets the target SQL query.
ISqlQuery SqlQuery { get; }
Property Value
Methods
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
MetadataDebugStringOptionsOptions for generating the string.
indent
intThe number of indent spaces to use before each new line.
Returns
- string
A human-readable representation.