msawczyn / EFDesigner

Entity Framework visual design surface and code-first code generation for EF6, Core and beyond
MIT License
363 stars 60 forks source link

ToView missing in created code for Is Database View #298

Closed Mr-Pearce closed 2 years ago

Mr-Pearce commented 3 years ago

I Have Entity where "Is Database View" is True. but the created OnModelCreating code in my dbcontext has a

modelBuilder.Entity<MyEntity>().ToTable(); instead a modelBuilder.Entity<PgStatUserTables>().ToView(); and then expects that it has an Key but i cannot set a property as identity because it is a view.