Thank you for your response,
The error I get occurs at the For Each statement so changing the action inside the loop will not resolve this. I am under the impression that this is possible but I admit I cannot find the exact solution. I have found where a UDF returns a type Expressions.Expression and I have found where using a Delegate is used to envolk a UDF. Does anyone have another view on this?
Thank you!
Main Topics
Browse All Topics





by: CodeCruiserPosted on 2009-08-13 at 04:11:28ID: 25086992
That is a limitation of LINQ. It does not support such features yet. You even can not use a property in the class, which is not mapped to a column in database, in a LINQ query! What is suggest is to change the code where you call the name1 and apply the function there. For example,
me1(z.Last Name1, z.FirstName1)
For Each z In x
Dim n1 As String = UserDefinedFunctions.GetNa
Next