using ERP.Core.Entities; using ERP.Framework.WebApi; namespace ERP.Core.Repositorys { public class SysRoleRepository : BaseRepository { public SysRoleRepository(CoreDbContext context) : base(context) { } public List SelectRoleListByUserId(long userId) { var q = from ur in Context.Set() join r in Context.Set() on ur.RoleId equals r.Id where ur.UserId.Equals(userId) select r; return q.ToList(); } } }