ADO.NET数据服务查询拦截器 - 谁能告诉我这个C#的VB语法?

时间:2022-09-01 11:31:49

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.

我是VB.NET的新手 - 我正在努力转换以下代码片段中方法的签名。表达式<... >>位。

Thanks in advance.

提前致谢。

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

1 个解决方案

#1


4  

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

#1


4  

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