我有一个Entity;public class ChildEntity{ /// <summary> /// Foreign key for this entity. /// </summary> public virtual int ParentId { get; set; } /// <summary> /// Navigation Property for this entity. /// </summary> public virtual TParentEntity Parent { get; set; }}如果我改变的Parent属性不同ParentEntity的数据库,(更新两者Parents Collections的Children Entities),我则需要改变ParentId从一个父实体向其他手动?谢谢!
1 回答
- 1 回答
- 0 关注
- 137 浏览
添加回答
举报
0/150
提交
取消