I am trying to create LINQ statement. with where clause like this
p.Users = db.UserFSMs
.Where(t => t.UserName.Contains(userORFile.Split('_')[2]))
.Select(new Models.UsersFSMFinal { Email=t.Email });
But the compiler is not recognizing t
. How can I create above query that will work with where?