How to use Linq where condition to check if a list of strings contains any string – Asp.net
I have a LINQ query like this: var data = from user in _context.Users select new { UserId = user.Id, Username = user.UserName, RoleNames = (from userRole in _context.UserRoles join role in _context.Roles on userRole.RoleId equals role.Id where userRole.UserId ==…