Hello!
I have a method
public MyObjectCollection GetMyObjects()
{
MyObjectCollection myObjects = new MyObjectCollection();
IPredicate filter = (MyObjectFields.Approved == true);
SortExpression sort = new SortExpression(MyObjectFields.Created | SortOperator.Descending);
myObjects .GetMulti(filter, 10000, sort);
return myObjects ;
}
then in Page_Load:
MyObjectHandler handler = new MyObjectHandler();
LLBLGenProDataSource1.DataContainerType = SD.LLBLGen.Pro.ORMSupportClasses.DataSourceDataContainerType.EntityCollection;
LLBLGenProDataSource1.EntityCollection = handler.GetMyObjects();
But the gridview always shows all the posts in the table, ignoring my filtering in the method.
the markup for the datasource is:
<llblgenpro:LLBLGenProDataSource ID="LLBLGenProDataSource1" runat="server" EnablePaging="True">
</llblgenpro:LLBLGenProDataSource>
Any ideas?