VS2010 Pro + SqlServer Express.
After you got into ASP.NET MVC 3 without a guide, but on the Internet (2 books to order), I canβt even get off the ground.
I get MVC myself. No problem. PHP, Ruby, and even ghastly WebForms have been running into my toolbelt, with a long history of developing the C ++ QT client server before.
Binding ASP.NET MVC 3 to a database using EF4 ORM is killing me. Objectives:
- Use a database modeled on a DBA. I can specify all the naming conventions, but at first the code is not a parameter!
- Import to EDMX. This will be updated regularly using VS tools from DBA DB, never edited directly.
- Create partial classes from EDMX for use as a model. This will be updated regularly using VS tools never edited directly.
- Use buddy to extend the model class with code as controller / view requirements.
- Intuitively use the resulting model, transfer it to the view, restore records to it for insertion / saving, etc.
I have seen and read so many blogs , forum posts , walkthroughs and stack overflow posts about this very use case. I even tried to ride the magic of a unicorn , and then the last 4.2beta1 with DbContext generators .
But can not get off the ground. I follow the instructions, but just do not understand how to do something with it. What kind of agreement does a "buddy" require (if any)? How to use it? How do I get the data? How to write data? Each example looks different. MVC guides are always focused on the user interface side. EF guidelines do not cover use in MVC.
These are the main questions, and now I feel like the most incompetent idiot on the WWW.
Is there anyone currently using MVC3 and EF4.x in the way I describe above?
user912639
source share