So I need to update the model from the db. The issue is that I want the new table to replace an existing one.
This is the format of my existing table.
Here is the new table after import it from the DB.
I delete the original table and rename the fields to match, build and get errors. I am getting errors because it can't find UserProfileTenant. When I use intellisense I see that it has USR_PROFILE_TENANT2 instead of UserProfileTenant.
I'm not sure where I need to update to have names properly updated.
Looking through some questions I found Change DB in EF . But the accepted answer isn't the one I used. Its this one by zeeshanhirani .
Besure to also update the column mappings after the new table is selected.
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.