Astoria : QueryInterceptor

  • Thread starter Thread starter Salvatore
  • Start date Start date
S

Salvatore

Hello,

It seem I am the only one to be concerned by this problem
WHent I try to use QueryInterceptor attribute I have a "RequestError"
like in

[QueryInterceptor("Orders")]
public IQueryable OnQueryOrders(IQueryable orderQuery)
{
return from o in
orderQuery
where o.Customers.ContactName
== .Current.User.Identity.Name select o; }

Does anybody have already use this feature ?

Regards

Salvatore
 
your interceptor has the wrong signature. it should be an expression
tree filter. it not clear what you where trying to do.

[QueryInterceptor("Orders")]
public Expression<Func<Orders,bool>> orderQuery
{
}

-- bruce (sqlwork.com)
 
Back
Top