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.
I Have Entity where "Is Database View" is True. but the created OnModelCreating code in my dbcontext has a
modelBuilder.Entity<MyEntity>().ToTable();
instead amodelBuilder.Entity<PgStatUserTables>().ToView();
and then expects that it has an Key but i cannot set a property as identity because it is a view.