我使用這個存儲過程如何從存儲過程返回所有記錄?
ALTER PROCEDURE [dbo].[MyProcedure]
@pSelect nvarchar(max)
AS
BEGIN
SET NOCOUNT ON;
DECLARE @SQL nvarchar(max)
SET @SQL = 'select ' + @pSelect + ' from vwAcdAdmissionWithvwAcdAdmissionSessionDetailWithAllMaster';
EXEC (@SQL)
END
並與LINQ從C#.NET entitydatamodel執行它
shoolSoulDataEntites分貝=新schoolSoulDataEntites; var ss = db.Myprocedure(「column1,column2」);
,但它返回一個整數值 我想程序 PLSS的結果的所有記錄幫助我
什麼是myprocedure? – Damith
http://stackoverflow.com/questions/3583933/creating-entities-from-stored-procedures-which-have-dynamic-sql – Damith
myprocedure是一個storedprocedure –