Watch Pre-recorded Live Shows Here
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
dzconception
2.1k
56
7.2k
EF Master Detail error msg
May 4 2018 3:13 PM
hi .. i have master/dtail relation ith EF
my code :
EngagDBEntities db;
public
EDITENGFrm(
object
obj)
{
InitializeComponent();
db =
new
EngagDBEntities();
if
(obj ==
null
)
{
engagementBindingSource.DataSource =
new
Engagement();
db.Engagements.Add(engagementBindingSource.Current
as
Engagement);
}
else
{
engagementBindingSource.DataSource = obj;
db.Engagements.Attach(engagementBindingSource.Current
as
Engagement);
}
}
why i have this error when updatig master table :
An entity object cannot be referenced by multiple instances of IEntityChangeTracker
Reply
Answers (
1
)
datewise report in crystal report
How to transfer data from excel to json using open xml