ASP.NET 4.0 and the Entity Framework 4 - Part 1 - Create a Database using Model-First Development
page 3 of 3
by Vince Varallo
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 28259/ 43


That's all you need to do to create a database using the new Entity Framework's Model First methodology. This is a big improvement over the first edition because it allows you to use Visual Studio to work through the design of you objects first and then VS can figure out how to create the database tables, indexes, and relationships for you.

This is just the first in a series of articles that will dive deep into the Entity Framework 4 and ASP.NET 4.0. In the next article I'll show you how to display records in a GridView, and also add, update, and delete records using the Entity Framework 4. Good luck on your project and happy coding.

View Entire Article

User Comments

Title: Kasparov   
Name: Garry Kasparov
Date: 2012-09-27 3:15:40 PM
This is an excellent article and tutorial to start with. Great Work !!!

I look forward to seeing the next articles.
Title: wer   
Name: werwer
Date: 2012-09-21 7:23:31 AM
Title: Select execute sql is not getting in pop-up menu   
Name: Silver
Date: 2012-01-27 12:06:55 AM
How to execute the OrderDB.edmx.sql file? it can't be found in the pop-up menu once I right click it
Title: Mr   
Name: Vibhor
Date: 2011-12-19 5:56:57 AM
Easy and good
Title: Select execute sql is not getting in pop-up menu   
Name: execute sql
Date: 2011-03-31 1:45:03 AM
It is important to note that the tables weren't added to the database yet. In order to actually create the tables you need to right click in the OrderDB.edmx.sql file and select Execute SQL from the pop-up menu. You'll be prompted to log into the server that contains your database. Once you are logged in the script will execute and the objects will be added to your database.
Title: Mr   
Name: Varun Maggo
Date: 2011-03-16 4:18:07 AM
You Rock Maan!

I need to follow your aricles now :)
Title: Nice tutorial   
Name: PongGod
Date: 2011-01-26 1:08:44 AM
Thanks, this makes a great starting point for developers wanting to dive into Entity Framework.
Title: EF4 to demonstrate   
Name: EF4 to demonstrate
Date: 2010-11-18 5:10:43 AM
EF4 to demonstrate
Title: Great Article   
Date: 2010-09-10 7:42:44 AM
Could you please tell me when do u publish next article on Entity Framework.
This article is superb.
Title: Good work   
Name: NurulH
Date: 2010-05-23 10:20:46 AM
Good work, thanks
Title: Good Start   
Name: bdjm
Date: 2010-04-21 11:02:24 AM
This is a good start, but Microsoft & Pluralsight do a much better job. See the hands on lab at:
Title: Excellent WalkThrough   
Name: Sreedevi
Date: 2010-03-31 6:52:51 AM
This is an excellent article. Got the insight of VS2010.

Title: Eagerly Looking For Next Article   
Name: purna
Date: 2010-03-29 10:01:39 AM
Title: Eagerly Looking For Next Article   
Name: Balu
Date: 2010-03-26 10:17:03 AM
Could you please tell me when do u publish next article on Entity Framework.
This article is superb.
Title: Next Article   
Name: Jon Osmanson
Date: 2010-03-13 6:34:14 PM
When are you going to have the next article, that continues the entity framework 4.0? On insert, update, delete, select? Please be soon!!!
Title: Publish Date   
Name: Vince Varallo
Date: 2010-02-26 8:39:12 AM
I'll be writing a series of articles on this website to develop out a similar pattern described in the book but will be using EF 4 rather than LINQ to SQL. There isn't a date for the second version of the book.
Title: Publish date of "Vince Varallo"'s book   
Name: hasan boby
Date: 2010-02-26 2:55:15 AM
I know "Vince Varallo, "the author of this article is going to include the “Entity Framework 4” in his writing 2nd edition of his great book, titled “ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution”. I am just curious about when the 2nd edition of the book is coming. I mean the rough idea of publish date. I can’t wait to read it.
Title: Hire Asp.Net Developer   
Date: 2010-02-15 12:41:46 AM
The article is good provides useful information & helpful as well.I like the article very much as it is very informative as it give information about ASP.NET application Entity Framework 4 and in future hope to see more of such articles.
Title: Very Good   
Name: Shashi
Date: 2010-02-11 1:43:38 AM
Please explain more how to use it in real time project
Title: Good   
Name: Henry
Date: 2010-02-10 4:49:48 AM
please explain more how to use this in three tier architecture
Title: Great!!!!!!   
Name: Majid Ismail
Date: 2010-02-10 12:02:29 AM
This is really a great way to build Database from modal. I'll look forward for some more detail articles about Entity FrameWork.

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-05-23 5:21:49 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search