yangzhongke / Zack.EFCore.Batch

Deleting or Updating multiple records from a LINQ Query in a SQL statement without loading entities
GNU General Public License v3.0
590 stars 85 forks source link

Postgres BulkInsertAsync: Unsupported JsonB version number 123 #116

Closed nil70n closed 1 year ago

nil70n commented 1 year ago

Hi! First of all, thanks for the package! I'm trying to improve an insert process using EF7 and .NET 6, and I'm getting the error below when calling DbContext.BulkInsertAsync

Exception: XX000: unsupported jsonb version number 123

My db column is of type jsonb and it's mapped to a string in my model class. Do you have any suggestions on how I can fix it?

nil70n commented 1 year ago

I was missing the builder configuration, closing the issue.