User159714378 posted
I developing enityframework code first approch application using repository.
In this application based on logged user we getting roles. based on this roles we getting menu's for that logged user. one user can maintain multiple roles
For this purpose i maintain 5 tables user, role, userroles, menu, menuroles. and we getting these table values in respective repositories
user repository for user
role repository for role
userrole repository for userrole
menu repository for menu
menuroles repository for menuroles etc
In menurole page we setting Add, Delete, Edit, View permissions
in menu table containing id and menuname
in role table containing id and rolename
menurole containing menuId, roleid edit, add delete permissions etc
newly create menu not coming in menurole table. now my requirement is i need to display newly created menu and same time already setted permissions in one page. i mean what will be repository query for this purpose