Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
262 Points
206 Posts
Feb 02, 2012 02:19 PM|LINK
I have a root entity called dataSheet that has one association entity called EEO. I get the datasheet like this:
DEVEntities1 dbcontext = new DEVEntities1(); dataSheet ds = dbcontext.dataSheets.SingleOrDefault(d => d.UID == formID);
so now I can type ds.EEO right? That works so I set ds.EEO.docID = 4
and then I do a updateModel(ds)
and then I do a dbcontext.savechanges()
this all works as well with one exception
not only is the EEO entity (docID property) updating in the db the ds entity (which also has a docID property on it) is also updating.
I want to update ds.EEO.docID
not ds.docID
How is ds.docID updating when I specifically tell ds.EEO.docID to update?
Any help?
parandal1
Member
262 Points
206 Posts
Need Help! Association root problem
Feb 02, 2012 02:19 PM|LINK
I have a root entity called dataSheet that has one association entity called EEO. I get the datasheet like this:
DEVEntities1 dbcontext = new DEVEntities1();
dataSheet ds = dbcontext.dataSheets.SingleOrDefault(d => d.UID == formID);
so now I can type ds.EEO right?
That works so I set ds.EEO.docID = 4
and then I do a updateModel(ds)
and then I do a dbcontext.savechanges()
this all works as well with one exception
not only is the EEO entity (docID property) updating in the db
the ds entity (which also has a docID property on it) is also updating.
I want to update ds.EEO.docID
not ds.docID
How is ds.docID updating when I specifically
tell ds.EEO.docID to update?
Any help?