Nerd dinner Repository pattern versus the repository used in , The Contoso University sample web application.

Jul 29, 2011 at 9:19 AM

I am using MVC 3 asp.net web application with entity framework , and i have also created a repository class to encapsulate all my business logic in the same way the repository class was implemented in the nerd dinner example MVC 2.

But lately i read a the “The Contoso University sample web application.” Example Which is available on the following link:-

http://www.asp.net/entity-framework/tutorials/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application

they used i think different way and syntax to implement the repository pattern.

So what are the major differences between these , and which apprahc is better to follow .

Thanks in advance for any help.

Best Regard