Probably the most common query operation is to apply a filter in the form of a Boolean expression. The filter causes the query to return only those elements for which the expression is true. The result is produced by using the where clause. The filter in effect specifies which elements to exclude from the source sequence. In the following example, only those customers who have an address in London are returned.
var queryLondonCustomers = from cust in customers
where cust.City == "London"
select cust;
You can use the familiar C# logical AND and OR operators to apply as many filter expressions as necessary in the where clause. For example, to return only customers from "London" AND whose name is "Devon" you would write the following code:
where cust.City=="London" && cust.Name == "Devon"
To return customers from London or Paris, you would write the following code:
where cust.City == "London" || cust.City == "Paris"
what is .NET Framework 3.0
Why is the .NET Framework 3.0 a major version numb...
Which version of the Common Language Runtime (CLR)...
Will the name change be reflected in any of the ex...
How does the .NET Framework 3.0 relate to the .NET...
What happens to the WinFX technologies?
What is the .NET Framework 3.0 (formerly WinFX)?
System Requirements for Installing .NET Framework ...
What Improvements does WCF offers over its earlier...
What are WCF features and what communication probl...
What contemporary computing problems WCS solves?
What contemporary computing problems WPF solves?
What is XAML ?
What is XBAP?
What is a service contract ( In WCF) ?
In terms of WCF, What is a message?
In terms of WCF, What is a service?
In terms of WCF, What is an endpoint?
In terms of WCF, What is an application endpoint?
In terms of WCF, What is an infrastructure endpoin...
In terms of WCF, What is an address?
In terms of WCF, What is an address?
In terms of WCF, What is binding?
What is an operation contract?
What is a message contract?
What is a fault contract?
N WCF, what do you understand by metadata of a ser...
What is password fatigue?
What are activities in WWF?
Jobs in USA ->NET
Learn .NET Framework 3.0
Download Microsoft .NET Framework 3.0 Redistributa...
Why is the .NET Framework 3.0 a major version numb...
Which version of the Common Language Runtime (CLR)...
Will the name change be reflected in any of the ex...
How does the .NET Framework 3.0 relate to the .NET...
What happens to the WinFX technologies?
What is the .NET Framework 3.0 (formerly WinFX)?
System Requirements for Installing .NET Framework ...
What Improvements does WCF offers over its earlier...
What are WCF features and what communication probl...
What contemporary computing problems WCS solves?
What contemporary computing problems WPF solves?
What is XAML ?
What is XBAP?
What is a service contract ( In WCF) ?
In terms of WCF, What is a message?
In terms of WCF, What is a service?
In terms of WCF, What is an endpoint?
In terms of WCF, What is an application endpoint?
In terms of WCF, What is an infrastructure endpoin...
In terms of WCF, What is an address?
In terms of WCF, What is an address?
In terms of WCF, What is binding?
What is an operation contract?
What is a message contract?
What is a fault contract?
N WCF, what do you understand by metadata of a ser...
What is password fatigue?
What are activities in WWF?
Jobs in USA ->NET
Learn .NET Framework 3.0
Download Microsoft .NET Framework 3.0 Redistributa...