I am having trouble with a select with a select.
The select query in () which is selecting the userid is not liked by the IDE. How do you accomplish a select within a select?
Dim newctx As teckModel.teckEntities
Dim pending = From c In newctx.my_aspnet_membership Where c.userId = (From c In newctx.my_aspnet_usersinroles Where c.roleId = 8 Select c.userId) Select c.Email, c.CreationDate, c.LastLoginDate
The equals operator assumes a single value, but the second linq statement is returning an IEnumerable. You should use
.Contains()on the IEnumerable or further refine the subquery to return only a single entity.