I have the following line of code in a function in my unit of work:
Customer c = Customers.FindWhere(x => x.Username == username).FirstOrDefault();
The function that this code is in however simply wants to return the "ID" field of the customer.
Instead of asking for all the customer fields, is there a way of just saying give me the id field?
The generic function .findwhere is using e.f 4.1