如何使用集合接受 Dapper.Contrib 方法?

How can I make use of the collection accepting Dapper.Contrib methods?

Dapper.Contrib (https://github.com/StackExchange/Dapper/tree/master/Dapper.Contrib) 指出他们有几种方法接受 IEnumerable 列表,但我似乎找不到任何这些方法。使用 .NET Core 2,这是过时的 readme.md 还是与 .NET Core 不兼容?

缺少方法:

int Insert<T>(Enumerable<T> list);
bool Update<T>(Enumerable<T> list);
bool Delete<T>(Enumerable<T> list);

我已经用普通的 Dapper 和一些 SQL 让它工作了,但我只是对这些方法在哪里感兴趣。

相同的方法可用于单个对象或对象列表。如果你check the source code for Insert, it checks whether the entityToInsert is an array or IEnumerable.

你应该会写

myConnection.Insert(myListOfItems);