You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just run the Scaffold-DbContext command to generate DBModels. and we also want DB Views to be included in the generated DB Context. but we found the codes are not correct. it should call the ToView method instead of ToTable. please check the below codes. thank a lot.
mm-ryo
changed the title
Run Scaffold-DbContext to generate DBModels to include Db Views
Run Scaffold-DbContext to generate DBModels, The codes are not correct with Db Views
May 13, 2020
@robinNode EF Core doesn't currently support creating views in the database (see #14537 and #465), therefore it's not possible to scaffold views in a way that creates them as views.
roji
changed the title
Run Scaffold-DbContext to generate DBModels, The codes are not correct with Db Views
Scaffold views into SQL definitions on the model
May 13, 2020
Hi,
I just run the Scaffold-DbContext command to generate DBModels. and we also want DB Views to be included in the generated DB Context. but we found the codes are not correct. it should call the ToView method instead of ToTable. please check the below codes. thank a lot.
Steps to reproduce
Run below command
Further technical details
EF Core version: 3.1.3
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL 3.1.3
Target framework: .NET Core 3.1
Operating system: Win 10
IDE: Visual Studio 2019 16.5.4
The text was updated successfully, but these errors were encountered: