Convert this SQL query into LINQ query
where U.IsAdmin, U.IsApprover, U.IsActive, R.IsActive are of bit data type
SELECT U.ID, U.FirstName, U.LastName, U.RoleID, U.UserID, U.IsAdmin, U.IsApprover, r.RoleName RoleName FROM USERS U
INNER JOIN [ROLE] R ON U.ROLEID = R.ID AND R.IsActive = 1
WHERE UPPER(U.UserID)= @UserID AND U.Password = @Password AND U.IsActive = 1


Shuvojit HalderRank #2,827 · 503 reputationPosted Feb 26, 2016, 12:18 AM EST
Rajeev PunhaniRank #551 · 4.4K reputationPosted Feb 25, 2016, 10:39 PM EST
Hi Zeeshan,
Please use the following tool.It may help.
If the above solution is helpful then,accept the answer.
Zeeshan AzimRank #1,613 · 967 reputationPosted Feb 26, 2016, 6:26 PM EST