Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 13, 2013 11:03 PM by dmsdev
Dec 19, 2012 02:25 PM|LINK
Is that a bug in EF or incorrect usage if the Entity Framework? If it is bug please report that to the EF team.
Feb 24, 2013 05:33 AM|LINK
Instead Of using "DeleteObject()" use "Remove()".
public void DeleteJob(short jid)
pubs2012Entities obj = new pubs2012Entities();
var x = (from n in obj.jobs where n.job_id == jid select n).FirstOrDefault();
Mar 13, 2013 11:03 PM|LINK
Yes but "Remove()" doesn't remove any child objects whereas "DeleteObject()" I believe did.
Is there no equivalent method that removes an object and its children in EF 5?