I have written a Linq to CRM query using CRM 2011 RC (v5) LINQ-to-CRM provider. I have a locally declared List
Edit: Try that one:
MyObject myObject = new MyObject();
List myAccountsList = new List();
myAccountsList.Add(new myAccount() {AccountNumber = "123"};
myAccountsList.Add(new myAccount() {AccountNumber = "456"};
myObject.ListOfAccounts = myAccountsList;
var accountNumbers = myObject.ListOfAccounts.Select(a => a.AccountNumber);
var accountsQuery = orgContext.CreateQuery()
.Where(a => accountNumbers.Contains(a.account_number));
foreach(var item in accountsQuery)
{
Console.WriteLine("Id of record retrieved: " + a.Id.ToString());
}
Edit: if you query provider don't support Contains, build a Where condition with multiple OR, you can use predicate builder to make that easy