Replace the code with the following.
static
void Main(string[]
args)
{
// Create an instance
MyEntitiesDataContext
myEntitiesDataContext = new
MyEntitiesDataContext("http://servername:2010/sites/test/");
// Get the lists from the site
EntityList<Item>
aList = myEntitiesDataContext.GetList<Item>("A");
EntityList<Item>
bList = myEntitiesDataContext.GetList<Item>("B");
List<Item>
aListItems=(from a
in aList select a).ToList();
List<Item>
bListItems = (from b
in bList select
b).ToList();
IEnumerable<Item>
mergedList = aListItems.Union(bListItems);
foreach (Item
items in mergedList)
{
Console.WriteLine(items.Title.ToString());
}
}