Proper way to build a data Repository in ASP.NET MVC

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 3:22 UTC
Read the original article Hit count: 294

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

Just looking for "best practices" here. Thanks in advance.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc