asp.net - Repository for ViewModel -


i have created following 2 repositories in dataaccesslayer application working on now.

  1. rolerepository
  2. 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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -