ASP.NET Tutorials
» Code-First Development with Entity Framework 4
Not Logged In.
Login
AspAlliance.com
Web
AspAlliance
Register
Edit My Profile
Author List
Write for Us
About AspAlliance
Contact Us
Privacy Policy
Link To Us
Advertise
Subscribe
Free Newsletter
Newsletter Archive
RSS Syndication
.NET Tutorials
Learn .NET
Learn WCF
Learn WPF
Learn ASP.NET
Learn AJAX
Learn Silverlight
Learn Visual Studio
Learn ADO.NET
Learn LINQ
Learn C# (CSharp)
Learn VB.NET
Learn Web Services
Learn Controls
Learn BizTalk
Learn SharePoint
Learn Mobile
Learn SQL
Learn SQL Reporting
Learn Windows Forms
Learn XML
Learn Crystal Reports
Learn FarPoint
Learn DevExpress
Examples
ASP.NET 2.0 Examples
ASP Tutorials
Learn ASP
Learn VBScript
Learn JScript
Learn SQL
Learn XML
Software Resources
Shopping Cart Ecommerce
Charts and Dashboards
Other Resources
Learn Java
Learn Oracle
Opinion / Editorial
Crystal Reports Alliance
WPF Resources
AJAX Resources
Silverlight Resources
Free Tools
Cache Manager
SimpleCMS
Reviews
Book Reviews
Product Reviews
Expert Advice
Books
ASP.NET Developer's Cookbook
Sample Chapters
Book Reviews
Community
Regular Expressions
Print
Add To Favorites
Email To Friend
Rate This Article
Code-First Development with Entity Framework 4
page
21 of
21
by
Scott Guthrie
Feedback
Average Rating:
This article has not yet been rated.
Views (Total / Last 10 Days):
65382
/
178
Article Contents
:
Introduction
Code-First Development with EF
Step by Step Tutorial: Building NerdDinner using a Code-First Approach
Step 1: Create a New Empty ASP.NET MVC 2 Application
Creating Model Classes
Creating a Context Class to Handle Database Persistence
Convention Based Persistence Mapping
Code Examples of How to Use Our Model
Step 3: Create a ASP.NET MVC Controller that uses our Model
Step 4: The Database
Populating the Database with some Dinners
Step 5: Changing our Model
Adding a new Property to the Dinner Model
Re-synchronizing our Model Classes with the Database
Seeding Initial Data in Automatically Created Databases
Step 6: Adding Validation Rules
Referencing some CSS and JavaScript files
Running the Application
Download
Summary
Resources
Resources
Scott Guthrie
AspAdvice Forums
AspAdvice Mailing Lists
« (Page 20)
View Entire Article
User Comments
No comments posted yet.
Product Spotlight
Community Advice:
ASP
|
SQL
|
XML
|
Regular Expressions
|
Windows
©Copyright 1998-2024 ASPAlliance.com | Page Processed at 2024-10-16 1:12:58 AM
About ASPAlliance
|
Newsgroups
|
Advertise
|
Authors
|
Email Lists
|
Feedback
|
Link To Us
|
Privacy
|
Search