Click here to Skip to main content
15,033,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




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