Executing procedures to retrieve data #21
GlobexHankScorpio
started this conversation in
General
Replies: 2 comments 1 reply
-
You should be able to do that without any problems like this: var list = connection
.AsProcedure()
.Read<Guid, string, string>("GetAllIncidents")
.ToList(); I'm very late with documentation and a website since I'm very occupied with a paying job, but you can see |
Beta Was this translation helpful? Give feedback.
1 reply
-
No problem, I'll leave this discussion open since it's not an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Vedran, I am starting to use Norm since yesterday, I am really courious to play around with it :)
The thing is, let's say I have this simple query, that works really fine:
var list = connection.Read<Guid, Guid, string, string>("select col1, col2, col3, col4 from incidents").ToList();
But I would like to move that query to a Procedure and just execute it, like this:
Norm norm = connection.AsProcedure().Execute("GetAllIncidents");
Once executed, the Norm object does not have any list result or similar. Is it possible to retrieve data while executing procedures? For me would be really usefull since I prefer to execute procedures, when possible.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions