Proper way to build a data Repository

Posted by rockinthesixstring on Stack Overflow See other posts from Stack Overflow or by rockinthesixstring
Published on 2010-06-15T02:21:56Z Indexed on 2010/06/15 2:22 UTC
Read the original article Hit count: 183

Filed under:
|
|

I'm working on using the Repository methodology in my App and I have a very fundamental question.

When I build my Model, I have a Data.dbml file and then I'm putting my Repositories in the same folder with it.... IE:

Data.dbml
IUserRepository.cs
UserRepository.cs

My question is simple. Is it better to build the folder structure like that above, or is it ok to simply put my Interface in with the UserRepository.cs?

Data.dbml
UserRepository.cs              which contains both the interface and the class

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about interface