I am working on my training project. I am new to entity infrastructure.
I have many two relationship tables. I use the code first. 
Here is the definition of the tables:
class EmployeeDBContext : DbContext { public EmployeeDBContext() : base("DefaultConnection") { } public DbSet<Course> Courses { get; set; } public DbSet<Student> Students { get; set; } }
A course table filled with three topics: history, mathematics, physics.
I need to add a new student and associate the student with existing courses.
Any idea how I can implement it?
Thanks in advance.
source share