如两个实体:
public class Department
{
public string DepartmentName
{
get;
set;
}
}
public class Employee
{
public string Name
{
get;
set;
}
public Department Department
{
get;
set;
}
}
我想在新增或更新EMPLOYEE表的同时,能更新Department表,比如,可以更新部门名称DepartmentName.