asp.net - Repository for ViewModel -
i have created following 2 repositories in dataaccesslayer
application working on now.
rolerepository
taskrepository
rolerepository
dealing role
related operations adding role
in database , retrieving collection of roles database. taskrepository
task
related operations rolerepository
.
i want map role
task
. mean role responsible tasks. relationship m:m. have created table store roleid
, taskid
. want display roles , corresponding tasks in gridview. need save roleid
,taskid
in table , need retrieve collection of roletaskviewmodel.
- in repository these operations need included?
- do need create new repository?
it sounds you're more interested in seeing tasks associated role roles associated task. in case, query rolerepository.
Comments
Post a Comment