Last post Apr 29, 2013 03:31 PM by Illeris
Apr 28, 2013 01:34 PM|sahil80|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 + MVC 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 to 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 best way.
Apr 29, 2013 03:31 PM|Illeris|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 you further :
UOW is not a must have for applications. Normally, you do not need to worry about this, the DBContext handles everything just fine. It does apply both the repository & UOW pattern.