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
EntityTypeMappings
Gets the entity type mappings.
IEnumerable<IViewMapping> EntityTypeMappings { get; }
Property Value
ViewDefinitionSql
Gets the view definition or null if this view is not managed by migrations.
string ViewDefinitionSql { get; }
Property Value
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
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