none
Join on entity and IEnumerable RRS feed

  • Question

  • Hi,

    If I have an enumerable with e.g. company ids, isn't it possible for me to join an entity on that enumerable? I get an NotSupportedException (referencing a non-scalar...) every time. I thought that was the only way to interact between different contexts.

    For example the following code does not work, then I get the NotSupportedException:

    from c in context.Company
    join id in ids on c.CompanyID equals id // ids are an enumerable with company identities (int) from another context.
    select c
    
    Am I missing something fundamental here?

    Thanks in advance!
    Best regards
    Lars
    Tuesday, January 19, 2010 10:47 PM

Answers

All replies