Hi,
I have some custom permission related logic that I like to implement in the GetSelectData method in the (Entity)DataSource classes, after the results IList is created by the switch statement that handles the various Select methods (GetAll, GetPaged, GetBy.., etc..). I basically need to conditionally filter out some of the results. Since there is no Filter method on the IList, I thought it best to use the .Remove method to take the entity items out of the returned collection so they're not displayed in the results, but this seems to mess up paging and sometimes the entities get Deleted all together from the database. Is there anyway to filter some of the results from the IList before they're returned by GetSelectData?
Another method I've considered is using ((ListBase)results).Filter = "XXX", but this also seems to throw the count off as well.
TIA for any suggestions!