Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Copper Super Contributor
Posts: 172
Registered: ‎07-06-2010

Child Properties appear to be missing

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"

                         

select opps;

            

           

if (allOpps.Any())

            {

                

foreach (var opp in allOpps)

                {

                  // I want to do something like if opp.MyCollection.Any()

                }

            }

 

Why isn't it showing up?

Highlighted
Copper Super Contributor
Posts: 172
Registered: ‎07-06-2010

Re: Child Properties appear to be missing

never mind, looks like a fresh build did the trick.