我有一個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的數(shù)據(jù)庫,(更新兩者Parents Collections的Children Entities),我則需要改變ParentId從一個父實體向其他手動?謝謝!
- 1 回答
- 0 關(guān)注
- 154 瀏覽
添加回答
舉報
0/150
提交
取消