Click here to Skip to main content
15,116,354 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want my result set into collection using entity, but without using edmx file, for e.g whenever we add stored procedure into edmx file, it automatically generate class for that stored procedure, as many stored procedure you add that many class you get, so i don't want that to happen, i want just to pass stored procedure name and parameter and that should return back the result set into collection
Updated 7-Apr-14 21:47pm

1 solution

Have a look at the overview of what function calls are available on the DataContext object

You can cast an entity connection to it's base class DataContext and go ahead writing the code you have outlined.
Benjamin Kadurkotta 8-Apr-14 9:29am
can you please explain me by proper example

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