updating an entity in entity framework
问题 I have an entity ( TerminalCertification ) which has relation to other entities. I want to make user to be able to update TerminalCertification but I'm not able to update related object which is updated by user. My update code is here: public void UpdateTerminalCertification(TerminalCertification terminalCertification) { var lastCertification = db.terminalCertifications.Find(terminalCertification.TerminalCertificationID); if (lastCertification==null) throw new