jeudi 23 juin 2016

Get values multi output parameter ( Store procedure ) in MVC

My store procedure :

create PROCEDURE [dbo].[GetProduct]

@ProdId int output

@ProdCode nvarchar(20) output

as begin set @ProdId=1 set @ProdCode='PROD00001' end

When i call SP GetProduct in Action, How to get values of 2 output parameter(@prodId,@ProdCode) ?

Aucun commentaire:

Enregistrer un commentaire