Lamda expression problem
I'm new with lamda expressions and linq and can't figure out what I'm doing wrong here:

    GroupSet groupToChange = context.GroupSet.Select(q => q.groupId == groupId);

I'm trying to get and change the name of an entity. 

    groupToChange.groupName = newGroupName;

I'm not having any problems with the second line though. Any ideas? It tells me I can't convert bool to GroupSet but the function returns what it finds, right?



Lamda expression problem
===

I'm new with lamda expressions and linq and can't figure out what I'm doing wrong here:

    GroupSet groupToChange = context.GroupSet.Select(q => q.groupId == groupId);

I'm trying to get and change the name of an entity. 

    groupToChange.groupName = newGroupName;

I'm not having any problems with the second line though. Any ideas? It tells me I can't convert bool to GroupSet but the function returns what it finds, right?


