I have an ADO.NET Data Service that exposes an Entity Framework data model (.edmx).
I need to allow / reject reads/writes to certain entities for certain users. I use Windows Authentication. All I could find is overriding the OnStartProcessingRequest :
protected override void OnStartProcessingRequest(ProcessRequestArgs args)
{
base.OnStartProcessingRequest(args);
bool isBatch = args.IsBatchOperation;
System.Uri requestUri = args.RequestUri;
// parse uri and determine the entity and the operation
// (i.e.: select/update/delete/insert) will be determined by the HTTP verb
}
However I think this sucks and I am hoping for a better solution... Any ideas? :(