Question

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          
 }
Was it helpful?

Solution

Public Function OnQueryOrders() As Expression(Of Func(Of Orders, Boolean))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top