I have a Stored Proc that do a validation on a parameter
ex.
IF @SearchType = 'BNa'
BEGIN
... DO something
END
ELSE IF @SearchType = 'SNa'
BEGIN
... DO something
END
So by default the Stored Proc return a scalar value and if SearchType = something valid it will return a IMultipleValues.
The problem is that when I drop my Stored Proc in the DataContext designer, it creates the LINQ-to-SQL for a function that only returns a scalar int. It doesn't understands that the Strored Proc could return a IMultipleResults with a scalar value and a DataSet.
Anyone know how to made LINQ-to-SQL to extrapolate the possible return values?