Originally posted by smi-mark
public class BOSFetch : IEntityServerFetching { public void OnFetching(IdeaBlade.EntityModel.v4.EntityServerFetchingEventArgs args) { if (args.Query.QueryableType is ActiveEntity) { //In here you can cast the args.Query to an EntityQuery<ActiveEntity> //and then you are able to do .Where and all your other query functions. } } }
|
Brilliant! Now where on earth do I put this?
I assume it's added to my Thingy.Web project, but it appears to have no effect there. How would it every get picked up? Does it go in an entity's partial class?
I'm interested in intercepting all client requests and filtering them based on our own per-entity permission set.
In Linq to SQL or Ria we would simply add a '.Where' to the .GetClients, but what would be the correct manner in DF?
I only installed this yesterday, so please explain in simple terms, and assume that I have not read the manual (which I have scanned through several times but not found a solution).
Also, how on earth does the Login feature work? How do I verify the login info?
If you could point me to any relevant doco that would be great, but the videos on the site are all covering pretty fundamental stuff, so the more technical customers could probably use a few more advanced ones :)
I'm using the SL version, just in case that makes a difference, and it looks excellent.
Cheers,
Jason