Error on creating Entityview2

Posts   
 
    
wexa
User
Posts: 38
Joined: 27-Jul-2007
# Posted on: 10-Jan-2008 00:11:55   

I am trying to create an entityview2 however I am getting an error

I am doing this:

                EntityCollection coll1 = new EntityCollection(new Sit3218RelpagoEntityFactory());
                adapter.FetchEntityCollection(coll1, null);
                EntityView2<Sit3218RelpagoEntity> conveniosView = new EntityView2<Sit3218RelpagoEntity>(coll1);

I get this error Error 3 The best overloaded method match for 'SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<Sit.EntityClasses.Sit3218RelpagoEntity>. EntityView2(SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2<Sit.EntityClasses. Sit3218RelpagoEntity>, SD.LLBLGen.Pro.ORMSupportClasses.IPredicate)' has some invalid arguments

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Jan-2008 05:35:53   

Use as follows:

EntityCollection<Sit3218RelpagoEntity> coll1 = new EntityCollection<Sit3218RelpagoEntity>(new Sit3218RelpagoEntityFactory());
adapter.FetchEntityCollection(coll1, null);
EntityView2<Sit3218RelpagoEntity> conveniosView = new EntityView2<Sit3218RelpagoEntity>(coll1);
David Elizondo | LLBLGen Support Team