只是在玩弄实体框架。Person (Id, Name)它与Id有关联。using (PersonDataModelContainer dmc = new PersonDataModelContainer()) var pers = new Person() { Id = PersonId }; var prof = new Profession() { Id = Pro
我得到的错误类似于上面的标签,它将在
namespace StartApp.Controllerspublic class EmployController : Controller StartEntities st = new StartEntities(); public ActionResult List() return View(st.employees.ToList());