I'm creating a SQL View on my Configuration Seed
protected override void Seed(QuiverContext context)
{
context.Database.ExecuteSqlCommand(DatabaseScripts.Views.MyView);
}
Now I want to add a DBSet to my DbContext that represents my View. I read that one can do this using then the Entity like a regular table.
So I tried but it requires me to add a migration which I did, but then the update-database command fails when creating the view since a table is created first.