我是 Entity Framework 的新手,现在我可以通过 id 加载父级。
但是我想在加载父级后从我的父级访问子属性。
protected void getChild_Click(object sender, EventArgs e)
{
JeansEntities db = new JeansEntities();
Employe employe = db.Employes.SingleOrDefault(p => p.Id == 3);
uxCountry.Text = //(address.Country) Its the child of Employe, but I can acces by the parent
}
谢谢