Mahesh Yadav
asked on
Use stored proc to get multiple table using entity framework
Hi,
I am searching a solution to get the multiple table set from stored procedure using edmx entity framework. I found the below solution but that uses ADO.net. Is there any approach/sample code to get dataset(multiple tables) from stored procedure without ADO.
https://github.com/KrisJohnstone/RandomCodeSamples/tree/master/MultipleResultSets
Below are the project specifications:
.Net Framework: 4.7.1
VS2017
SQLServer2016
MVC: 5.2
I am searching a solution to get the multiple table set from stored procedure using edmx entity framework. I found the below solution but that uses ADO.net. Is there any approach/sample code to get dataset(multiple tables) from stored procedure without ADO.
https://github.com/KrisJohnstone/RandomCodeSamples/tree/master/MultipleResultSets
Below are the project specifications:
.Net Framework: 4.7.1
VS2017
SQLServer2016
MVC: 5.2
Any reason why you are not using Views or Linq etc.?
ASKER
Thanks for your prompt reply.
My requirement is to get the grid data on demand paging, for this i need one proc to get data from different tables with filter and page number.
Secondly i need the total row count based on filter applied, for that i am using another proc to get the count only.
I want to merge those two proc to get my required data(result table and count) in one go.
As my query is big so I can't rely on Linq for optimization.
Thanks and regards
My requirement is to get the grid data on demand paging, for this i need one proc to get data from different tables with filter and page number.
Secondly i need the total row count based on filter applied, for that i am using another proc to get the count only.
I want to merge those two proc to get my required data(result table and count) in one go.
As my query is big so I can't rely on Linq for optimization.
Thanks and regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.