-1

I have been using WebForms until now and now wish to learn MVC. However all the online sources that I can reach prefer employing Entity Framework for database examples. I do not will to discuss whether EF (or ORM in general) is good or bad, but I want to learn MVC not any ORM. So can you suggest a source (online or book) that focuses on MVC and uses some more classic data access methods (e.g. DataReaders) or simpler abstraction layers (some collections encapsulating data)?

paul simmons
  • 5,568
  • 13
  • 51
  • 78
  • define "classic data access methods" – Robert Levy Apr 06 '12 at 00:36
  • although i strongly believe it should be obvious from the context, i updated the question a bit. – paul simmons Apr 06 '12 at 00:45
  • While it is completely possible to use ASP.NET MVC with ADO.NET, there is very little compelling reason to do so. I am in that exact situation with my current client and it's not at all enjoyable how much time I'm *wasting* futzing with the data layer of the application. Using an ORM makes development go so much faster (once the learning curve issues are overcome). What I'm trying to say is that there is a *very good* reason so many ASP.NET MVC samples use EF. – Michael Maddox Apr 06 '12 at 12:48

1 Answers1

1

Entity Framework is not necessary for use with MVC - it is just one method. You can pick up any of the major MVC books (I recommend those written by John Galloway, et al or Dino Esposito) and just pass by the section specifically talking about EF (if the book indeed does have such a section).

JasCav
  • 34,458
  • 20
  • 113
  • 170
  • I agree. A well-written book will discuss the layers better than a book that can't separate concerns very well. The goal of MVC is to keep parts in the presentation layer separate from the business or data layers. – Joseph Yaduvanshi Apr 06 '12 at 01:05