I have two tables to which I have to make insert to
Table 1 : Project
- projectId
- Name
- Description
Table 2 : Access
- id
- userId
- projectId
Now I am using ASP.NET MVC 4 with Entity Framework, now my question is how do I make insert to both this table ?
I mean I know I can make insert to Table 1 using EF, but then I need the projectId(which is generated with the first insert) to make the second insert.
I am not sure of how to go about it. Please some one guide me on this