Results 1 to 7 of 7

Thread: [RESOLVED] Linq Query Question

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Campion's Avatar
    Join Date
    Jul 2007
    Location
    UT
    Posts
    1,098

    Resolved [RESOLVED] Linq Query Question

    Hey, guys. So I'm still learning LINQ here, and am having an issue with what should be an easy query.

    Basically, my query is this: I want all of the characters that are of a membership level in a given area that is of admin or above.

    This is what I have so far:

    Code:
    Dim L As List(Of Character) = (From C In MasterCharacterList.Characters.Values _
        Where Me.Item(C.CharID).DreamLevel.ContainsValue( _
            (From L In _Levels Where L.Value.Admin Or L.Value.BotMaster Select L.Value.MemberLevel).ToList.ForEach) Select C)
    Me, in this case, is the members collection.

    So far, I can't get the query to turn into a list (hence no .tolist at the end.) I know there's something wrong here, but I'm not sure what.
    Last edited by Campion; May 12th, 2009 at 03:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width