I just made a test with Id's stored the default way (BinData(3.....)) and
Den torsdag den 4. oktober 2012 17.36.26 UTC+2 skrev craiggwilson:
> Was just talking about this with Robert and I may have misunderstood your
> On Thursday, October 4, 2012 8:46:15 AM UTC-5, craiggwilson wrote:
>> You need to access the collection using the base class and then us OfType
>> Colleciton<Element>.AsQueryable().OfType<Survey>().Where(f => f.Id == id);
>> On Thursday, October 4, 2012 6:02:21 AM UTC-5, Christian Sparre wrote:
>>> I have a base class *Element *and a subclass *Survey*
>>> In simple form they look like this :)
>>> Survey : Element
>>> The *Guid Id* is represented as a string in the database using the
>>> When I save documents and return them all (FindAll) everything works
>>> But when I try to do the following it fails with the error *"Unable to
>>> Collection<*Survey*>.AsQueryalble().Where(f=>f.Id == id)
>>> But if I query only on the base class *Element*
>>> Collection<*Element*>.AsQueryalble().Where(f=>f.Id == id) it works as
>>> I have no class maps created manually, and when I lookup the *Survey *class
>>> Any idea?, I know there was a problem with inherited properties and
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.