Repository vs Data Access
Posted
by vdh_ant
on Stack Overflow
See other posts from Stack Overflow
or by vdh_ant
Published on 2010-05-06T13:29:45Z
Indexed on
2010/05/06
13:38 UTC
Read the original article
Hit count: 298
Hi guys
In the context of the n-tier application, is there a difference between what you would consider your data access classes to be and your repositories?
I tend to think yes but I just wanted to see what other thought. My thinking is that the job of the repository is just to contain and execute the raw query itself, where as the data access class would create the context, execute the repository (passing in the context), handle mapping the data model to the domain model and return the result back up...
What do you guys think? Also do you see any of this changing in a Linq to XML scenario (assuming that you change the context for the relevant XDocument)?
Cheers Anthony
© Stack Overflow or respective owner