Hi Silvio,
Perhaps I misunderstand the difference between a filter and a where clause. I thought a filter was a where clause.
This is what i am trying to do:
I have this on the client:
var query = EmailEntityManager.vEmailMessageEntities.Where(a=> a.FolderId == 254);
this._vEmailMessages = new EntityQueryPagedCollectionView(
query,
this.PageSize,
this.PageSize,
true,
false
);
Then, the user selects a different folder. I need to requery, this time with a where clause on it, such as FolderId = 255; This happens on the client.
Then on the server, I need to enforce security. I need to add an additional where clause on it to make sure that in addition to FolderId = 255, that 'OwnedBy' == 1.
I wanted to do the second part on the server just to make sure no-one was trying to access data that didn't actually belong to them. Otherwise, if they could manage to send up a folder ID of say 555, it might be someone else's data.
Thanks so much,
Greg