08-21-2012 10:17 AM
I'm working on an assembly that is going to handle an OnBeforeDelete event for a Contact and I'm noticing that the child properties for the entities I want to work with look to be missing. The ones that are missing are ones that don't have an explicit interface created for them.
Here's my code. In the example below, MyCollection is what I want to get, but it doesn't show in Intellisense. There isn't an interface of type IMyCollection either.
IAccount account = Contact.Account;
var allOpps = from opps in account.Opportunities
where opps.Status == "Open"
foreach (var opp in allOpps)
// I want to do something like if opp.MyCollection.Any()
Why isn't it showing up?