Astoria : QueryInterceptor

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
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top