Last active
May 30, 2019 13:11
-
-
Save mikependon/ca700f4ae16c6541c71363c8e75d9ff3 to your computer and use it in GitHub Desktop.
IDbConnection (ExecuteQuery<Orders> via StoredProcedures)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var connection = new SqlConnection(connectionString)) | |
{ | |
var orders = connection.ExecuteQuery<Order>("[dbo].[sp_get_customer_orders]", | |
new { CustomerId = 10045 }, | |
commandType: CommandType.StoredProcedure); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment