P
psycho
How do we return a single value from a stored procedure.
Suppose I have a stored procedure like this:
create proc dbo.spInsertGroup
@ID uniqueidentifier
@GroupName varchar(100),
@IsActive bit
AS
BEGIN
SET @ID = newid()
insert into tblGroup
values(@ID, @GroupName, @IsActive)
select @ID
END
i am trying to return the same value using LINQ to SQL using stored
procedure.
But all the methods are failing as those types do not have a default
constructor
Is there any method by which i can perform this task.
Suppose I have a stored procedure like this:
create proc dbo.spInsertGroup
@ID uniqueidentifier
@GroupName varchar(100),
@IsActive bit
AS
BEGIN
SET @ID = newid()
insert into tblGroup
values(@ID, @GroupName, @IsActive)
select @ID
END
i am trying to return the same value using LINQ to SQL using stored
procedure.
But all the methods are failing as those types do not have a default
constructor
Is there any method by which i can perform this task.