c# - Entity Framework: Regeneration of changed tables (key changes) -
I have a huge DB that is linked to my entity framework. I have a special set of tables where a normal The key (FK) was removed from the design. When I "update the model from the database", I get many errors about this now-existent key.
The update process does not know exactly why this key was removed? Besides, if I manually remove the property from the model, then I just end up with other errors. I also tried to delete the table and add it again, but now the "add" section of the table update wizard Does not appear in
So, less than removing and starting the whole thing, is there any way to properly beautify? EF team has released any new version of this wizard in which some of these problems have already been fixed?
unit framework gets confused from time to time What you need to do, unit from the model table Delete the table, then rename the table name in SQLName_Temp in the table, refresh the model, now the unit table should be fine, so repeat the unit table again to rename it back to the original name and once again refresh the model this time Everything should be fine.
I know that this is a mess process, but this is the only way in which I started with scratch without removing the whole adam to fix this problem. There is currently no policy on my organization that we do not make any changes to ADMX until it is absolutely necessary so that we can remove it whenever needed and without any problems, then we can rest it again.
Hope this will be helpful!
Comments
Post a Comment