我有一个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从一个父实体向其他手动?
谢谢!
相关分类