Dapper.contrib 插入 - 无法将带有 [] 的索引应用于 'object' 类型的表达式

Dapper.contrib Insert - Cannot apply indexing with [] to an expression of type 'object'

使用:
.NET Core 1.1
Dapper.Contrib
Npgsql

在 Postgresql 9.6 上

我正在尝试使用 .InsertAsync 扩展方法但出现错误:
Cannot apply indexing with [] to an expression of type 'object'

Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot apply indexing with [] to an expression of type 'object'
   at CallSite.Target(Closure , CallSite , Object , String )
   at CallSite.Target(Closure , CallSite , Object , String )
   at PostgresAdapter.<InsertAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

如果我使用正常的 .Insert 方法,一切正常。
可能是什么原因?

这是一个错误:https://github.com/StackExchange/Dapper/pull/689

查看问题跟踪器,它已修复但未发布。

您可以尝试从最新源构建,或者自己应用特定修复。