Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql To Linq - Again
Message
General information
Forum:
ASP.NET
Category:
LINQ
Miscellaneous
Thread ID:
01472630
Message ID:
01472647
Views:
50
Kevin,

Assuming that you have a relationship on RoleID between aspnet_Roles and RolesToGlobalRoles :
var query = from r1 in DataContext().aspnet_Roles
                        where r1.RolesToGlobalRoles.Any()
                        select r1;
Kurt
>How do I convert this to Linq:
>
>
>
>SELECT r1.*
>	FROM aspnet_Roles r1
>	WHERE r1.RoleId IN
>		(SELECT r2.RoleId
>			FROM mmlaspnet_RolesToGlobalRoles  r2)
>	ORDER BY RoleName
>
Previous
Reply
Map
View

Click here to load this message in the networking platform