4
How can I run a store with Dapper?
4
How can I run a store with Dapper?
8
Assuming you wanted to get the result in a variable of type Cliente
.
var cliente = connection.Query<Cliente>("spClientes", new {Id = 1},
commandType: CommandType.StoredProcedure).First();
The first parameter is the name of the precedent, the second is the parameters passed to it and the third is the type of command that will be executed.
Browser other questions tagged c# dapper
You are not signed in. Login or sign up in order to post.
It worked really well thank you!
– Leandro Rodrigues