Skip to content

Create database views in Migrations using SQL generated from a LINQ projection #465

@ilmax

Description

@ilmax

Note: This issue is tracking a specific aspect of using EF Core with database views. See #827 for an overview of the areas where EF Core interacts with database views. The completion of this feature does not mean that every aspect of database view support has been implemented.


Hi,
I'm wondering if is possible to create view from migrations in a C# fashion. Since a view is essentially a projection of one or more tables, it could be easily created by parsing a C# linq projection, so we can write once and execute everywhere (no more db dependent sql script).

Since all the pieces of this functionality are already there, I think it should be at least possible to do this.

Let me know what you think about it.
Cheers Max

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions