Repositories and the Save Method
Posted
on Dot net Slackers
See other posts from Dot net Slackers
Published on Mon, 14 Jun 2010 00:00:00 GMT
Indexed on
2010/06/14
3:12 UTC
Read the original article
Hit count: 219
Filed under:
One of the questions I've been getting lately goes like this: Should a Repository class have a Save method? And the standard answer: It depends. It's hard to keep track of all the different approaches to implementing the repository pattern these days, but I assume when someone asks me this type of question they are thinking of using code like this: var employee = new Employee();
employeeRepository.Save(employee);
var account = new Account();
accountRepository.Save(account);
This...
Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
© Dot net Slackers or respective owner