I have a method called
public static IQueryable GetUsers()
uses Linq query.
{SELECT [t0].[ApplicationUserId], ([t0].[LastName] + @p0) + [t0].[FirstName] AS [UserName], [t1].[SecurityRoleName], [t2].[UserStatus]
FROM [dbo].[ApplicationUsers] AS [t0]
INNER JOIN [dbo].[SecurityRoles] AS [t1] ON [t0].[SecurityRoleId] = [t1].[SecurityRoleID]
INNER JOIN [dbo].[UserStatusLookups] AS [t2] ON [t0].[UserStatusId] = [t2].[UserStatusLookupID]
ORDER BY [t0].[LastName]
}
that returns all the users. I cannot the change this method or class.
I need a user belonging to a specific security role. From just IQueryable would I be able to get a specific user.
so that [t1].[SecurityRoleID]
is replaced with 15.