I have the following query, works great with an email of my own or many peoples to be exact but a few of them just don't get found.
Query:
var result = lic.Where(x => (string)x["Email"].ToString().ToLower() == email.ToLower()).FirstOrDefault();
I took the liberty of trying a much simpler expression and still the same result:
var result = lic.Where(x => (string)x["Badge"].ToString() == "10419").First();
I am using a List Collection in the Sharepoint.dll
I have confirmed that there IS a record in this list with this information. for a 100% fact, the data is there.
If I plug in my email, this query pulls my record with no issues. But if I put in a certain employee's email, this function returns a null reference like there was no record found in my List Collection.
I am at a complete loss here.
Thanks
-Garen