I am having trouble selecting items based off if there are records 0 records in a related entity collection using adapter mode..
here is an example of my code:
Dim q = From c In metaData.Contact
Where c.Orders.Count() = 0
Select c
return q.toList
When executed I get the following exception:
SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryConstructionException was unhandled
Message=The property 'Count' isn't mapped to a field or database construct of entity type '...'. Did you mean to call an extension method instead? ('Count' vs. 'Count()') ?
RuntimeBuild=12022009
RuntimeVersion=2.6.0.0
Source=SD.LLBLGen.Pro.LinqSupportClasses.NET35
...
Its pretty straight forward but I am a newbie to llbl. Is this the proper way of doing this?