Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Model Binding for MVC only?
Message
From
01/07/2014 13:47:45
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01602973
Message ID:
01603018
Views:
40
There are several ways to use EF:
- Model First -- Use the designer to create a model, then generate the DB
- DB First -- Use the designer to import an existing DB and create the model
- Code First -- Forget the designer. Just create the model in code

There is also tooling that will look at an existing DB and create the model in code (Code First).

I've never used the EF designer for real work.

This free EBook may help http://www.syncfusion.com/resources/techportal/ebooks/entityframework.


>Thank you. I always thought that I need to create a small DB and then do the EF from the existing database (since ultimately I will need to apply the EF to my existing database). But I am sure you know this technology better.
>
>>No, not really. You can forget about all the diagramming, etc. Use EF Code First (the default for MVC). Do the MVC Music Store walk-through http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started. You'll get enough EF to get you going.
>>
>>Now, when you get to doing a real system with an existing DB, come back and find out how to make Code First bring in an existing DB.
>>
>>
>>>I agree that learning on a small project is a better approach. But as you say "a small MVC app using EF" which implies that I need to know some basics about EF. And so far, I can't get my mind around it (EF). Or - probably more honest answer - didn't spend uninterrupted time learning.
>>>Thank you.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform