Hi All,
Could you please help me on this.
i have in Ado.net entity framwork relation like this
modelBuilder.Entity()
.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

Jignesh TrivediPosted Jul 24, 2013, 11:25 PM
hi,
i am not getting your question clearly but...
please refer below link it might help you.
http://entityframeworktutorial.net/EntityFramework4.3/update-many-to-many-entity-using-dbcontext.aspx
http://blogs.objectsharp.com/post/2011/01/28/Entity-Framework-Many-to-Many-Relationships.aspx