Questions tagged [dynamicparameters]
48 questions
0
votes
1 answer
Pass output parameters in a template object in Dapper
I have stored procedures with input and output parameters. I have separate classes for input and output classes. So, I want to create Dynamic Parameters using template objects instead of adding each property.
For Eg:
public class StudentInput {
…

Jenny
- 345
- 3
- 5
- 15
0
votes
0 answers
Execute sql query in Excel with dynamic parameter from cell
I would like to execute an sql query in excel sheet, i have a cell "date" when i enter a date, the value of this cell should be passed as a parameter to my query and i want to get data relatives to this date into my excel sheet. I proceeded as below…

Gtari Abir
- 69
- 3
- 12
0
votes
1 answer
using sqlmapper.query in dapper with parameters
I am creating a web app using web api mvc and I am using dapper.
Here is a scenario where I want to get the data in a list by validating user info
DynamicParameters param = new DynamicParameters();
param.Add("@fname", std.Fname);
param.Add("@lname",…

Hemanth Vatti
- 85
- 1
- 8