This question is locked. New answers and comments are not allowed.
I've found the following problem when trying to compile after creating a WCF EndPoints Service using the DSW in Visual Studio 2008 using VB. The DataManager class has a problem. First it creates a reference to System.Linq.Dynamic. We're not using a reference to that assembly, but rather are using the code directly from the DynamicLinq.vb class created by the DSW. So OK fine, let's comment that one out.
Next, there's a problem win the Search Entities Function
This statement, produces a compile error with Option Strict on.
The error is as follows:
So, because this is an implementation of the DynamicQueryable class as far as I can tell, I thought what you might actually mean is:
I'll definitely admit that I'm in over my head here, but this should provide the search criteria you're looking for correct? If it's right, please modify the creation of the DataManager.vb from the DSW to include these changes.
Imports
System.Collections
Imports
System.Collections.Generic
Imports
System.Globalization
Imports
System.Linq
'Imports System.Linq.Dynamic
Imports
System.Reflection
Imports
System.Text
Imports
Telerik.OpenAccess
Next, there's a problem win the Search Entities Function
This statement, produces a compile error with Option Strict on.
Dim
results = scope.Extent(Of T)().Where(paramString.ToString(), paramValues.ToArray())
The error is as follows:
Error 1 Overload resolution failed because no accessible 'Where' is most specific for these arguments:
Extension method 'Public Function Where(predicate As String, ParamArray values() As Object) As System.Linq.IQueryable(Of T)' defined in 'WVMSwcfService.DynamicQueryable': Not most specific.
Extension method 'Public Function Where(predicate As String, ParamArray values() As Object) As System.Linq.IQueryable(Of T)' defined in 'WVMSwcfService.DynamicQueryable': Not most specific. C:\Users\Tim.HOME\Documents\@WVenture\Development\Matter Subscription\trunk\code\WVMSwcfService\DataManager.vb 233 27 WVMSwcfService
So, because this is an implementation of the DynamicQueryable class as far as I can tell, I thought what you might actually mean is:
'Dim results = scope.Extent(Of T)().Where(paramString.ToString(), paramValues.ToArray())
Dim
results = DynamicQueryable.Where(scope.Extent(Of T)(), paramString.ToString, paramValues.ToArray())
I'll definitely admit that I'm in over my head here, but this should provide the search criteria you're looking for correct? If it's right, please modify the creation of the DataManager.vb from the DSW to include these changes.