简体   繁体   中英

How to use the EF Designer in Visual Studio 2022 and EF 6?

Latest stable for both.

I've successfully scaffolded and then migrated (to get ASPNetUser tables over to the database). Work policy is Database-First. The solution consists of web app and worker service projects using shared models in a Folder and this works well.

Now I've made changes to the tables, and would like to update the models. Obviously migrating is the opposite of what I want, and if I scaffold I may overwrite our own additions (to eg OnConfiguration, used services, etc) - is this correct?

It seems EF Designer will let me do this, but I'm not able to find how to even open the EF Designer shown in many answers to the question.

Do these release notes (see "EF Designer Support") suggest that it's deprecated, and is the workaround recommended?

Use partial classes/methods for any changes, so they do not get overwritten, and then use

-Force 

(or have a look at EF Core Power Tools)

There is no "EF designer" for EF Core

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM