Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

dapper query list of parameters

List<string> names = new List<string> { "Bob", "Fred", "Jack" };
string query = "select * from people where Name in @names";
var stuff = connection.Query<ExtractionRecord>(query, new {names});
Source by dapper-tutorial.net #
 
PREVIOUS NEXT
Tagged: #dapper #query #list #parameters
ADD COMMENT
Topic
Name
1+2 =