Hi Terry,
Please use **AndAlso **operator (logical short-circuit And) instead of And. Here is a little explanation.
Another thing about your query: if you just want the Count part, your query is ok. If you will need the results, I would recommend do that this way:
Dim q = (From m In metaData.Customers _
Where m.Country = "USA" AndAlso m.City.StartsWith("A") _
Select m).ToList()
If (q.Count > 0) Then
For Each c As CustomersEntity In q
Console.WriteLine(c.CompanyName)
Next
End If
This way just one query is executed. If you first do a Count() (one query) and then you try to use the q results, another query will be executed. So, it's recommended you use the **Count **property instead, if you plan to use the results of the query