Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i have a stored procedures like a below :
SQL
USE [Kiwi]
GO
/****** Object:  StoredProcedure [dbo].[uspGetTeam]    Script Date: 8/13/2015 11:40:44 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[uspGetTeam](
   @TeamID INT
)
AS
BEGIN
   SELECT TeamID, TeamName, TeamStatus
   FROM Team WHERE TeamID=@TeamID
END 


using this stored procedure to get the values in linq to sql list
Posted
Updated 12-Aug-15 21:01pm
v2
Comments
Suvendu Shekhar Giri 13-Aug-15 3:03am    
Stored Procedure looks fine. What is the problem?

1 solution

I suggest going through the tutorial of calling a stored procedure using LINQ to SQL. Have a look at
How to: Use Stored Procedures to Return Rowsets (LINQ to SQL)[^]
and How to: Use Stored Procedures that Take Parameters (LINQ to SQL)[^]
 
Share this answer
 
v2
Comments
Maciej Los 13-Aug-15 4:49am    
5ed!
Wendelius 13-Aug-15 23:41pm    
Thanks Maciej :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900