Doubt regarding construction and performance of querys using Query Syntax
and Method Syntax
/ LINQ
Query Syntax:
var VendorQuery = from v in vendors
where v.CompanyName.Contains("Toy")
orderby v.CompanyName
select v;
Method Syntax
var vendorQuery = vendors
.Where(v => v.CompanyName.Contains("Toy"))
.OrderBy(v => v.CompanyName);
The querys above are fictitious, just to illustrate.
In both situations the same query is mounted? Assuming I have to do a relatively "heavy" search, it does difference using one or the other?