ant-design-blazor / ant-design-pro-blazor

👨🏻‍💻👩🏻‍💻 An out-of-box UI solution for enterprise applications as a Blazor boilerplate.
https://pro.antblazor.com/
Apache License 2.0
752 stars 134 forks source link

DbContext Scaffold The specified deps.json does not exist. #174

Open s0AHC opened 7 months ago

s0AHC commented 7 months ago

Dear support team,

I cloned ant-design-blazor to local and try to work with EntityFramework Core of mysql in visual studio 2022 for an existing database. I tried to run Scaffold-DbContext command in package management console, but pm pop-up error: DbContext Scaffold: The specified deps.json [C:\Users\\source\repos\Private\\\bin\Debug\net8.0\.deps.json] does not exist.

But I tried build a new blazor web app in visual studio the Scaffold-DbContext work very well.

So, I thought this should be a bug in ant-design-blazor.

BR, Han Zheng Rong

JeromyCrother commented 1 month ago

Hello, although I am not a staff member of ant design pro blazor, my experience tells you that ant design pro blazor is a front-end framework with a VNet WebAssembly structure, so it does not support SQL database connections. You need to create a new project.net Web API yourself

ElderJames commented 1 month ago

Thank you @JeromyCrother , but the pro tmeplate supports both WASM, Server and Auto.