I am new to Entity Framework and i have to start a application within no time before learning EF in detail.
I need a help in insertion to a relational table.
Suppose in my application I have two tables Staff and Departments and I have relation table ‘StaffDepartment’ which has FK constraints StaffID and DeptID. When I generate Models from database , StaffDepartment entity hasnt appeared in the EF. So how can i insert values to StaffDeparment table in EF as i have no dint get any object named ‘StaffDepartment’.
Any help will be greatly appreciated.
Thanks in advance
Boney
See walk-through below on generating the model:
EF 4.1 Model & Database First Walkthrough