Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restore Deleted Navigation Property in Entity Framework

I deleted a navigation property in my Entity Framework Designer, thinking it wasn't needed. It's now needed and I'd like to restore it. How can I do this without deleting the model and re-importing the table from the database?

like image 500
Johnny Oshika Avatar asked Feb 13 '26 04:02

Johnny Oshika


1 Answers

I think you can just refresh the model (the same way you add to it), so there's no need to delete it first. And if the navigation property doesn't get added you can add it manually.

like image 113
Jeroen Avatar answered Feb 15 '26 17:02

Jeroen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!