Projection from an entity view to entity collection issue

Posts   
 
    
LloydM
User
Posts: 17
Joined: 05-Dec-2007
# Posted on: 26-Feb-2008 21:22:47   

Hello,

I'm trying to project an entity view onto a entity collection, but am getting a "Cannot resolve method" exception in the VS.Net IDE. The Entity View's CreateProjection method overload I'm attempting to use expects an IEntityCollection type as it's 2nd argument and I'm passing it (ProjectionEntityCollection) an LLBLGen Entity Collection.

someView= new EntityView<SomeEntity>(SourceEntityCollection);

ArrayList propertyProjectors = new ArrayList();

propertyProjectors.Add(new EntityPropertyProjector(SomeEntityCollectionFields.Field1, "Field1"));

propertyProjectors.Add(new EntityPropertyProjector(SomeEntityCollectionFields.Field2, "Field2"));

tierFactorView.CreateProjection(propertyProjectors, ProjectionEntityCollection); - same type as the SourceEntityCollection, but method won't resolve

Please advise.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 26-Feb-2008 22:04:37   

Hi Lloyd,

Could you please post more info? (http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7725)

Please post the more realistic code you can. Post the line where you instantiate the ProjectionEntityCollection collection.

What do you mean with "exception in the VSNet Ide"? Is that a compilation-time error?

David Elizondo | LLBLGen Support Team