Last post Feb 06, 2010 05:29 PM by ignatandrei
Feb 06, 2010 02:51 PM|Rylow|LINK
I have just followed the NerdDinner tutorial which sets up the website using the linq-to-sql dbml file as its model. Later in the tutorial (the video one), it says to refactor this information into repositories and the only access to the database is in the
I am applying the tutorial to a different site so I have than just one model. Should I make a general "SqlRepository.cs" or should I make a different repository for each model. Example: "SqlDinnerRepository.cs", "SqlTagRepository.cs", "SqlCommentRepository.cs"
asp .net 2. 0
Feb 06, 2010 05:29 PM|ignatandrei|LINK
Make a repository only for what you want to acces. Think at the repository as if it is a something that you provide to others to use. What you provide in order to use simpler, accurate and easy ?