T
Tony Johansson
Hello!
I have two linq queries below and I wonder if the
second one will give the same result as the first one.
var orders = db.Customers
..Where(c => c.Country == "USA" && c.Region == "WA")
..SelectMany(c =>c.Orders);
var orders =
from c in db.Customers
where c.Country == "USA" && c.Region == "WA"
select c.Orders;
//Tony
I have two linq queries below and I wonder if the
second one will give the same result as the first one.
var orders = db.Customers
..Where(c => c.Country == "USA" && c.Region == "WA")
..SelectMany(c =>c.Orders);
var orders =
from c in db.Customers
where c.Country == "USA" && c.Region == "WA"
select c.Orders;
//Tony