All otherStored Procedures are working fine and show up in LLBLGen.
======
I think I found the problem.
LLBLGen seems to expect a SELECT statement in the Store Procedure. I assume that is because it can tell whether the EXEC statement will return any records at all. So the wrapper gets ignored as well.
If I alter the wrapper to:
ALTER PROCEDURE dbo.sp_GetOrdersWrapper
( @viewingUserId int,
@companyId int,
@placedByUserId int,
@orderStateId int,
@DateFrom nvarchar(10),
@DateTo nvarchar(10),
@ReceiverSearchPattern nvarchar(255),
@ArticleSearchPattern nvarchar(255),
@ConfirmState int,
@ErrorState int,
@isHTML bit
)
AS
SET NOCOUNT ON
DECLARE @OrderTable TABLE
(
OrderID int,
DatePlaced date,
DeliveryAddress nvarchar(500),
OrderContent nvarchar(500),
PlacedByUserLogin nvarchar(500),
IsConfirmed Status nvarchar(50),
ErrorName nvarchar(50),
PlacedByUserID int
)
INSERT INTO @OrderTable
exec GetOrders @viewingUserId, @companyId, @placedByUserId, @orderStateId, @DateFrom, @DateTo, @ReceiverSearchPattern, @ArticleSearchPattern, @ConfirmState, @ErrorState, @isHTML
SELECT * FROM @OrderTable
RETURN
it will show up.
But you must admit, that this is a very dirty hack!