CRM SaveChanges Exception has been thrown by the target of an invocation

插入子表时,没设置主表的id

原文地址:https://www.cnblogs.com/fengwenit/p/4268270.html