I have an External list based on an External Content Type that is connected to Dynamics CRM.
In an event receiver (C#), I successfully get an SPList instance that is able to print the 'Title' and 'Created' properties.
However when I print the property 'ItemCount', i get "0 items". I know that there is a couple of hundred items in the list so something is not right.
When I try a SPQuery against the list, I get and exception when trying to use the returned SPListItemCollection.
What may be the cause of this problem?