VS2010 Pro + SqlServer Express.
Having been dropped into ASP.NET MVC 3 with no guidance but the web (2 books on order), I can't even get off the ground.
The MVC itself I get. Not a problem. PHP, Ruby, and even ghastly WebForms firmly tucked into my toolbelt, with a long history of C++ QT client-server development before that.
Tying ASP.NET MVC 3 to a database using EF4 ORM is killing me.
The goals:
- Use database modeled by DBA. I can specify all naming conventions, but code first is not an option!
- Import to EDMX. This will be regularly updated using VS tools from the DBA's DB, never edited directly.
- Generate partial classes from EDMX, for use as model. This will regularly be updated using VS tools, never edited directly.
- Use 'buddy' to extend above model class with code as the Controllers/Views need.
- Intuitively use the resulting model, pass it to the view, retrieve posts into it for insert/save, etc...
I've seen and read so many blogs, forum posts, walkthroughs, and stack overflow posts regarding this very use case. I even tried riding the magic unicorn, followed by the latest 4.2beta1 with DbContext generators.
But can't get off the ground. I follow instructions, but just not understanding how to do anything with it. What conventions does the 'buddy' require (if any)? How do I use it? How do I get data with it? How do I write data? Every example looks different. MVC guides are always focused on the UI side. EF guides don't cover usage in the MVC.
These are basic questions, and I'm feeling like the most incompetent idiot in the WWW right now.
Is anyone out there currently using MVC3 & EF4.x in the way I describe above?