任何人都知道如何将其表示为实体框架查询?方法语法或查询语法都可以。
Declare @UserId int = 18
Select *
From [Profiles]
Where [Profiles].[ProfileId]
IN( Select [SecurityProfileAssignments].[ProfileId]
From [SecurityProfileUsers]
Join [SecurityProfileAssignments] On [SecurityProfileAssignments].[SecurityProfileId] = [SecurityProfileUsers].[SecurityProfileId]
Where [SecurityProfileUsers].[UserId] = @UserId)