Click here to Skip to main content
15,847,903 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
I am using ADO.Net Entity Data Model 3.5 I have three Database Tables

1. Groups (ID ,Name) // This table contain user's group information

2. Roles (ID,Name) // contains role information

3. AssignedRoles (GrpID, RoleID) // contain roles assigned to a specific group



ADO.Net Entity Model has generated (DataEntites) the following two entities against these three tables

1. Gourp

Scalar Properties
ID
Name

Navigation
Roles

2. Role

Scalar Properties
ID
Name

Navigation
Groups

The relationship between these two entities is Many to Many.

I want to insert a role against a particular groupid

Please help me in this regard
Send me code that insert Role(GroupID,RoleID) using Entity Framework.
Posted

1 solution

Did you ever figure out the answer to this question? I have been searching and haven't found any examples.
 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900