LINQ 문을 만들려고합니다. where where with thiswhere 절이 올바르게 작동하지 않는 LINQ 문
p.Users = db.UserFSMs
.Where(t => t.UserName.Contains(userORFile.Split('_')[2]))
.Select(new Models.UsersFSMFinal { Email=t.Email });
그러나 컴파일러는 t
을 인식하지 못합니다. 위의 쿼리를 어디에서 만들 수 있습니까?
내 대답 –
그냥 구문 오류를 확인 괜찮 았는데. 여기 lamba 구문에 대해 읽어야합니다. https://msdn.microsoft.com/en-us/library/bb397687.aspx – sam