Table of Contents

Interface IView

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

Represents a view in the database.

public interface IView : ITableBase, IAnnotatable
Inherited Members
Extension Methods

Properties

Columns

Gets the columns defined for this view.

IEnumerable<IViewColumn> Columns { get; }

Property Value

IEnumerable<IViewColumn>

EntityTypeMappings

Gets the entity type mappings.

IEnumerable<IViewMapping> EntityTypeMappings { get; }

Property Value

IEnumerable<IViewMapping>

ViewDefinitionSql

Gets the view definition or null if this view is not managed by migrations.

string ViewDefinitionSql { get; }

Property Value

string

Methods

FindColumn(IProperty)

Gets the column mapped to the given property. Returns null if no column is mapped to the given property.

IViewColumn FindColumn(IProperty property)

Parameters

property IProperty

Returns

IViewColumn

FindColumn(string)

Gets the column with the given name. Returns null if no column with the given name is defined.

IViewColumn FindColumn(string name)

Parameters

name string

Returns

IViewColumn