How? What do you write in the stored proc?Here is a brief example of the stored proc I'm using. Where do I get the value of @AutoIncrementField in my BO if it's not in the mapped field after a Save()?
ALTER PROCEDURE [x].[myProc]
@AutoIncrementField INT OUTPUT,
@foreignkeyfield UNIQUEIDENTIFIER,
@value1 INT,
@value2 INT
AS
INSERT INTO [X].[myTable]
(
foreignkeyfield
value1,
value2
)
VALUES
(
@foreignkeyField,
@value1,
@value2
)
SET @AutoIncrementField = @@IDENTITY