Search
 
SCRIPT & CODE EXAMPLE
 

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});
Comment

dapper query list of parameters

var sql = "SELECT * FROM Invoice WHERE Kind IN @Kind;";

using (var connection = My.ConnectionFactory())
{
	connection.Open();

	var invoices = connection.Query<Invoice>(sql, new {Kind = new[] {InvoiceKind.StoreInvoice, InvoiceKind.WebInvoice}}).ToList();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# list add and return 
Csharp :: oldest living language 
Csharp :: how to backup terrain in unity 
Csharp :: datagridview show noti each row column 
Csharp :: how can i only show just a part of alist in datagridview in c# 
Csharp :: bitwise even or odd 
Csharp :: grab reference from method parameter c# 
Csharp :: C# read GroupComponent Or PartComponent using regex 
Csharp :: source a listbox by property of object c# 
Csharp :: get access to all controls with a specific tag in C# 
Csharp :: linq top selling products 
Csharp :: .net SaveChanges vs update difference 
Csharp :: Set orientation of moving object towards it movement direction 
Csharp :: aquarette 
Csharp :: c# textbox tab column 
Csharp :: 2d movement unity 
Csharp :: .net core get exe path 
Csharp :: nunit return parameter 
Csharp :: c# office interop copy slide to another pppt 
Csharp :: attribute c# get method name reflection 
Csharp :: Area Of the triangle with condition 
Csharp :: Prime number Upto n 
Csharp :: how to add a componet to a gameobject throgh code unity 
Csharp :: copy file 
Csharp :: leantween move ui 
Csharp :: how to make a enemy in unity 
Csharp :: Responsive Bootstrap 4 Admin Dashboard icon cdn 
Csharp :: Dominosteine c# 
Html :: removing filepath from url using htaccess 
Html :: flutter build web html 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =