I have a stored procedure in SQL as below:
CREATE PROCEDURE USP_Select
(@id INT)
AS
SELECT * FROM EMO;
SELECT * FROM student WHERE id = @id;
SELECT * FROM tbl1;
RETURN 0
I am getting data using Entity Framework from that stored procedure using this code:
Modalities context = new Modalities();
context.USP_Select(1);
How can I define which table data gets in my code?
So here how can I get data different tables in code from the stored procedure?