How to select single column using Linq C#



To select Specific Column using Linq in C# we have write following query base on data.




var Resume = _context.Resume.Where(e => e.EmployeeID ==
               EmployeeID && e.UploadDate == _context.Resume.Max(e => e.UploadDate)).FirstOrDefault();



On the basis of where condition we will get the specific record.

No comments:

Post a Comment