开发者

EF - Import a new table from DB and have it replace an existing one

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.

EF - Import a new table from DB and have it replace an existing one

Here is the new table after import it from the DB.

EF - Import a new table from DB and have it replace an existing one

I delete the original 开发者_如何学Ctable 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜