Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Many to many inserting values ito DB in Ado.net entity frame
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
P Narasimha
11y
1.6k
1
Reply
Hi All,
Could you please help me on this.
i have in Ado.net entity framwork relation like this
modelBuilder.Entity<Permission>()
.HasMany(u => u.Roles)
.WithMany(r => r.Permissions)
.Map(mapTable => mapTable.MapLeftKey("PERMISSION_ID")
.MapRightKey("ROLE_ID")
.ToTable("ROLE_PERMISSIONS", schema_name));
here while saving role object inserting PERMISSION_ID,Role_ID from role object and primarykey value from Sequence now i want remove the Sequence in DB and insert through code how can i do this please help me on this.
Thanks & Regards,
Narasimha
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
getting error in datamodel in mvc4
Create Dynamic Site Map