Join Michael Sullivan for an in-depth discussion in this video Using LINQ to Entities, part of Up and Running with ASP.NET.
…Having seen a lot of autogenerated database access code at this…point, you might be saying to yourself, well the scaffolding stuff…is handy, but how can I query my database for very…specific things, when I need to customize a little bit more?…We'll take a look at a few different ways to do that using LINQ to Entities.…So, we're going to continue with our…database first solution from the last video.…And for a simple example of something a little less…generic, let's add a new action method in tour controller.…
This new method will return a view that will list…all the tours that are of the highest difficulty rating.…Which is called Difficult.…And we're going to call the action method Difficult also.…We might start by copying the code in the Index method to get a base set of tours.…By the way, the use of the Include method here insures…that the related rating record is loaded along with the tour record.…This is an example of eager loading.…Since we're loading the rating details right…away before we even need to use them.…
- Exploring .NET in general and ASP.NET in particular
- Creating controllers and views
- Working with models and forms
- Managing data
- Creating web APIs
- Establishing connections with SignalR
Skill Level Beginner
ASP.NET MVC 4 Essential Trainingwith Jess Chadwick3h 56m Intermediate
1. Exploring the Framework and the Development Environment
2. Structuring Applications
3. Working with Data
Using LINQ to Entities6m 12s
4. Web API and RESTful Services
5. Real-Time Web with SignalR
6. Hands-On Practice
Next steps2m 3s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.