Search code examples
vb.netentity-frameworkado.netcode-conversion

ADO.NET Data Services Query Interceptor - can anyone tell me the VB syntax of this C#?


I am pretty new to VB.NET - and I'm struggling to convert the signature of the method in the following code snippet. The Expression<...>> bit.

Thanks in advance.

 [QueryInterceptor("Orders")]
 public Expression<Func<Orders,bool>> OnQueryOrders()
 {
     return o => o.Customer.ContactName == 
         HttpContext.Current.User.Identity.Name          
 }

Solution

  • Public Function OnQueryOrders() As Expression(Of Func(Of Orders, Boolean))