Using Dapper or Dapper.SimpleCRUD, How might I delete a List from a table. Something like:
public static void DeleteList<T>(List<T> listToDelete)
{
using (var connection = OpenConnection())
{
connection.Delete<T>(listToDelete);
}
}
But when I try that, I get...
The member of type DataModel.MyTable cannot be used as a parameter value
Is the only option to pass in a WHERE clause?