I am executing this query which returns results...however it is returning ALL results, not the one specified in my where clause. How should I re-write this so that ONLY the ID in the where clause is returned?
string server = "blahblahblah";
string msn = "14318";
var ctx = new ClientContext(server);
ver web = ctx.Web;
List list = web.Lists.GetByTitle("Attendance");
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = "<ViewFields>
<FieldRef Name='recID'/>
<FieldRef Name='MasterID'/>
<FieldRef Name='totalsalevalue'/>
</ViewFields><where><Eq><FieldRef Name='EmployeeID' /><Value Type='Text'>"+msn+"</Value></Eq><Where>";
var listItemCollection = list.GetItems(CamlQuery.CreateAllItemsQuery());
ctx.Load(listItemCollection, eachItem => eachItem.Include(
item => item,
item => item["recID"],
item => item["totalsalevalue"],
item => item["MasterID"]));
ctx.ExecuteQuery();
foreach (ListItem li in listItemCollection)
{
Console.WriteLine(li["recID"]);
Console.WriteLine(li["MasterID"]);
Console.WriteLine(li["totalsalevalue"]);
}