LINQ to Entities не распознает метод метода System.String ToString ().
List <MenuModels> _menus =
_entity.SubMenus
.Where(x => x.RoleId.Split(',').ToString() == _loginCredentials.UserRoleId)
.Select(x => new MenuModels
{
MainMenuId = x.MainMenu.Id,
MainMenuName = x.MainMenu.MainMenu1,
SubMenuId = x.Id,
SubMenuName = x.SubMenu1,
ControllerName = x.Controller,
ActionName = x.Action,
RoleId = x.RoleId,
RoleName=x.Role.Roles
}).ToList();
![https://i.stack.imgur.com/4gt8n.png](https://i.stack.imgur.com/4gt8n.png)