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.
Interfaces: IEnumerable and IQueryable - .NET Tutorial
From the course: .NET Essentials: LINQ for Databases
Interfaces: IEnumerable and IQueryable
- [Instructor] Oh yes, it's time to talk about IQueryable again. I just want to bring home this idea that when you're working with blink to entity framework you're querying against Iqueryable interface. Now this code here is not too different from what I showed you in the last video. So I am working with products, and this time I'm calling "get type on it" and I'm dumping out the names. So I can see that this is a DB set. It's DB set. I already have one that means it's a generic type. And when I do this query using the query expression syntax and I get the type on that, it tells me that's DB query, we've seen that. And also mentioned in the last video that it doesn't matter what you'd use the query expression or you use an extension method you're going to get back at DB query. Yes, that's true. Let me say that here from this information. Now, I just want to point out that we're working with Iqueryable. So if I…
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
-
-
-
-