From the course: .NET Essentials: LINQ for Databases
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
View the Expression Tree - .NET Tutorial
From the course: .NET Essentials: LINQ for Databases
View the Expression Tree
- [Instructor] For those that are curious about the provider and the expression tree, you can get that information from the IQueryable Interface. So that's what I'm doing in this video. Is here I've got a query expression. I'm executing query here on line seven. And then once I've executed the query I go to this interface IQueryable and I go to the provider property and I dump out the name of the provider. And then on line 13 I output the abstract instructions that are passed to the query provider. That's the expression tree. Then the name of the provider is System.Data.Entity.Internal.Linq.DbQueryProvider, and then in this table, is the information for the expression tree. And remember, this is the abstract representation of our query that gets turned into the real SQL by this query provider. Now this shows things like an IList expression. It shows that there is some parameters or something called a constant…
Contents
-
-
-
-
-
Explore the relevant LINQ types4m 24s
-
(Locked)
Understand the DbContext2m 38s
-
(Locked)
Queryable types: DbSet and DbQuery1m 30s
-
(Locked)
DbSet, the basis for EF collection models1m 57s
-
(Locked)
Save changes in DbSet3m 1s
-
(Locked)
DbQuery, the basis of LINQ queries for EF models1m 4s
-
(Locked)
Interfaces: IEnumerable and IQueryable1m 41s
-
(Locked)
View the Expression Tree1m 20s
-
(Locked)
View the generated SQL1m 25s
-
-
-
-