.NET 1.1 - EntityCollectionBase.Find() does not exist in new LGEN version with 4.0

Posts   
 
    
Posts: 22
Joined: 19-Jul-2010
# Posted on: 13-Sep-2010 09:31:25   

hi,

In my old .NET 1.1 app I used the method EntityCollectionBase.Find( PropertyDescriptor property, Object key). Now I migrated my application to .NET 4.0 including LGEN dlls. The Find method is not there in the new LLBL gen version . Could you please suggest me how can I use the Find method in the new LLBl gen version. what is the alternative ?

thanks, kalyan.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 13-Sep-2010 10:18:19   

Please use EntityViews

Posts: 22
Joined: 19-Jul-2010
# Posted on: 13-Sep-2010 10:43:52   

Just now I found FindMatches(..which identifies the entity in the collection . Can I use that as an alternative for Find()

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 13-Sep-2010 14:59:39   

FindMatches() will do the job. But if you want to filter on a Property which is not an EntityField, you will have to use an EntityView.