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

View the Expression Tree - .NET Tutorial

From the course: .NET Essentials: LINQ for Databases

Start my 1-month free trial

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