Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Using Entity Framework with MVC Web Apps2:30 with James Churchill
Let's start with an overview of what you'll learn in this course.
To get the most from this course, you should feel comfortable with C#, ASP.NET MVC, Visual Studio, and the basics of Entity Framework. For more information about those topics, check out these Treehouse courses and workshops:
- C# Basics
- C# Objects
- Intermediate C#
- ASP.NET MVC Basics
- ASP.NET MVC Forms
- Introduction to Visual Studio
- Entity Framework Basics
- Entity Framework Migrations
While it's not absolutely required, you'll also find it helpful to know something about relational databases and the SQL language. Check out this Treehouse course:
Hi, my name is James.
Entity framework or
simply EF is a type of framework known as an object relational mapper or ORM.
Using EF for your applications data access allows you to interact if your data using
the set of entities and a database context clause.
This keeps you from having to write sequel queries
in order to interact directly with the database.
In an earlier treehouse course we learned about the basics of EF,
but we did that within the confines of console application.
While that allowed us to keep the focus on EF,
it didn't give us a realistic common use case.
This course is designed to do just that.
Show you how to use EF within a web application developed using Microsoft's
asp.net MVC web framework.
We'll start this course by seeing how to put our EF entities and
database contacts classes into its own class library project.
Then we will add an ASP.NET MVC project to our solution and
update to use EF code in the class library.
After updating our web app to retrieve and persist data.
We'll look at some options for organizing our data access code.
By the end of this course you will be able to use EF with ASP.NET MVC to
create powerful data-driven web applications.
Let's talk about how to get the most out of this course.
I'm going to assume that you're already familiar with the basics of ASP.Net MVC,
entity framework, and Visual Studio.
If you're unfamiliar with any of those topics or maybe you need a refresher,
check the teacher's notes for a list of Treehouse resources that can help.
This course is designed to be highly interactive.
Throughout, I'll be asking you questions and
giving you hands-on coding exercises to complete on your own.
But don't worry, you won't be left hanging.
After you've had time to think about the question or complete an exercise,
I'll share with you the answer or walk you through my solution.
Also, I'd encourage you to follow along with each video.
Write the code yourself as I'm writing it or just after and
take the time to complete each exercise.
Even if you aren't able to come up with the solution just the act of trying will
help you to learn and retain the material Before we start working on setting
up our solution, let's take a look at our web app in its finished form.
You need to sign up for Treehouse in order to download course files.Sign up