I have a database table named Tags (Id, Name) from which I would like to select the ones where the name matches a name in a list. In SQL I would use something like:
public IEnumerable GetInvoicesByStatus(List statuses)
{
return _database.Fetch(@"
select *
from Invoices
where Status IN (@statuses)",
new { statuses });
}