I am trying to create an EntityView and it will not compile.
EntityCollection phoneCollection= new EntityCollection(new TelephoneAllValidViewEntityFactory());
filter.Add(TelephoneAllValidViewFields.PartyId == partyId);
bucket.PredicateExpression.Add(filter);
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.FetchEntityCollection(phoneCollection, bucket);
}
EntityView2<TelephoneAllValidViewEntity> view = new EntityView2<TelephoneAllValidViewEntity>(phoneCollection);