TypedList with filters

Posts   
 
    
rai
User
Posts: 41
Joined: 25-Jan-2007
# Posted on: 17-Apr-2008 05:48:49   

I am using LLBLgen version 2.5 with adapter,SQL server 2005 and Visual studio 2005 with C#

I want to use typlist for my reports but i dont know how to pass the filters. heres what iam doing ... UnupdatedTypedList records = new UnupdatedTypedList(); DataTable results = new DataTable(); IRelationPredicateBucket filter = new RelationPredicateBucket(TransactionsFields.Update != true); new DataAccessAdapter().FetchTypedList(records,filter,results); ----but iam getting error over here...

Error 5 The best overloaded method match for 'SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchTypedList(SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields2, System.Data.DataTable, SD.LLBLGen.Pro.ORMSupportClasses.IRelationPredicateBucket)' has some invalid arguments

after doing this then i want to attach it to the report The typlist is basically taking out the unupdated record and showing a a report. But iam stucked in the middle....please help me.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 17-Apr-2008 07:24:03   

Rai, try this (ref: LLBLGenPro Help - using the generated code - Adapter - Using TypedViews, TypedLists and DynamicLists - Using TypedLists):

new DataAccessAdapter().FetchTypedList(records.GetFieldsInfo(),filter,results); 
David Elizondo | LLBLGen Support Team
rai
User
Posts: 41
Joined: 25-Jan-2007
# Posted on: 17-Apr-2008 08:37:49   

thanks i managed to get it.