You are on page 1of 1

sahil80 sahil80 Member 5 Points 2 Posts MVC 4 + Entity framework and Repository pattern tutoral?

Apr 28, 2013 05:34 PM|LINK I am just getting started with MVC - I have traditionally been a webform guy. I have been reading articles about MVC 4 for last two three weeks but I still have question marks in mind. Question 1: Is there any recent artcile(s) that explain Entity Framework 5 + MV C and Repository pattern. Most of the stuff I have read is EF4. Question 2: I have an existing database, when I produce POCO objects using EF5 - thats my domain model. In order to implement separation of concern do I need t o implement repository pattern and UOW? -- I read a thread on this forum saying EF5 already implements both repository pattern an UOW. I need to get over this confusion as I want to make sure I am learning MVC the b est way. http://forums.asp.net/t/1879558.aspx/1?mvc+4+entity+framework+5+and+the+reposito ry+pattern MVC REPOSITORYPATTERN ReplyIlleris Illeris Participant 1722 Points 325 Posts Re: MVC 4 + Entity framework and Repository pattern tutoral? Apr 29, 2013 07:31 PM|LINK There is few difference between EF4 and EF5 concerning the use of patterns, such as the repository pattern. The same principles apply. Perhaps this could help y ou further : http://www.codeproject.com/Articles/561584/Repository-Pattern-withEntity-Framework-using UOW is not a must have for applications. Normally, you do not need to worry abou t this, the DBContext handles everything just fine. It does apply both the repos itory & UOW pattern.

MVC REPOSITORYPATTERN Please remember to click "Mark as Answer" on this post if it helped you http://illerisblog.wordpress.com/

You might also like