In Link to Sql, this works fine:
User user = this.dataContext.Users.FirstOrDefault(p => p.User_ID == loginID);
However, I would like to sear
var user = this.dataContext.Users.FirstOrDefault( p => p.User_ID == 250 && p.UserName == "Jack");
The p => at the beginning counts for the whole expression. The syntax used here is a shorthand for
p =>
(p) => { return p.User_ID == 250 && p.UserName == "Jack"; }