The value (parameter) of ABC can be NULL. I’m struggling with how to set it to null. The statement below is not working. If I trying to set type Nullable(OfInteger), I get the error that the value is the ‘wrong type.’ Thanks in advance.
Dim ABC as Integer = Nothing
Public Function RunStoredProce(ByVal **ABC** As Integer, ByVal DEF As String) _
As IEnumerable(Of MyProjectStoredProcResults) Implements MyFunction.GetThatDataResult
Dim y = (From p In dc.uspReportMyFunction(**ABC**, DEF)
Select p).ToList
Return y
End Function
I believe linqtosql will handle the nullable translation automatically.