Skip to content

Dapper.Contrib 1.50.0 -> 1.50.4 broke InsertAsync(IEnumerable) #930

@snebjorn

Description

@snebjorn

I can't quite pinpoint what is going on. But when I update Dapper.Contrib from 1.50.0 to 1.50.4 I get this exception

System.InvalidOperationException : An enumerable sequence of parameters (arrays, lists, etc) is not allowed in this context
at Dapper.SqlMapper.GetCacheInfo(Identity identity, Object exampleParameters, Boolean addToCache) in ...\dapper\Dapper\SqlMapper.cs:line 1686

When calling await _connection.InsertAsync(listOfEntities);.

Anyone else getting this?

My Dapper version is 1.50.4. It works with this version combo:

  • Dapper v1.50.4
  • Dapper.Contrib v1.50.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions