EFDesigner icon indicating copy to clipboard operation
EFDesigner copied to clipboard

ToView missing in created code for Is Database View

Open Mr-Pearce opened this issue 4 years ago • 0 comments

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.

Mr-Pearce avatar Aug 04 '21 12:08 Mr-Pearce