Why is this Exception?- The relationship between the two objects cannot be defined because they are
- by dev-1787
I m getting this Exception-"The relationship between the two objects cannot be defined because they are attached to different ObjectContext objects."
I ve user table and country table. The countryid is referred in user table.
I am getting the above Exception when I am trying to add entry in user table.
This is my code-
using
(MyContext _db =…