【发布时间】:2019-09-17 07:57:19
【问题描述】:
我有两张桌子,Person 和 Courses 这是表人:
public int ID { get; set; }
public int Name { get; set; }
public int CourseID1 { get; set; }
public int CourseID2 { get; set; }
表课程:
public int CourseID { get; set; }
public int Name { get; set; }
每个人都有 2 门课程。 我确实知道如何首先在 asp.core 代码中为他们建立关系
【问题讨论】:
标签: c# entity-framework asp.net-core code-first