You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found that using the bulk import function fails when using a Point type spatial object which maps to a POINT column type. Using add range works fine so the context is setup right but this library doesn't seem to support geometry (in my case Point) types in SQLite.
Is there anything I need to do to get this to work?
System.InvalidOperationException: No mapping exists from object type NetTopologySuite.Geometries.Point to a known managed provider native type.
at Microsoft.Data.Sqlite.SqliteValueBinder.Bind()
at Microsoft.Data.Sqlite.SqliteParameter.Bind(sqlite3_stmt stmt)
at Microsoft.Data.Sqlite.SqliteParameterCollection.Bind(sqlite3_stmt stmt)
at Microsoft.Data.Sqlite.SqliteCommand.GetStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at EFCore.BulkExtensions.SqlAdapters.SQLite.SqliteOperationsAdapter.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, Boolean isAsync, CancellationToken cancellationToken) in /_/EFCore.BulkExtensions/SqlAdapters/SQLite/SqLiteAdapter.cs:line 84
at EFCore.BulkExtensions.SqlAdapters.SQLite.SqliteOperationsAdapter.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, Boolean isAsync, CancellationToken cancellationToken) in /_/EFCore.BulkExtensions/SqlAdapters/SQLite/SqLiteAdapter.cs:line 105
at EFCore.BulkExtensions.SqlAdapters.SQLite.SqliteOperationsAdapter.Insert[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress) in /_/EFCore.BulkExtensions/SqlAdapters/SQLite/SqLiteAdapter.cs:line 22
at EFCore.BulkExtensions.SqlBulkOperation.Insert[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress) in /_/EFCore.BulkExtensions/SqlBulkOperation.cs:line 55
at EFCore.BulkExtensions.DbContextBulkTransaction.Execute[T](DbContext context, Type type, IList`1 entities, OperationType operationType, BulkConfig bulkConfig, Action`1 progress) in /_/EFCore.BulkExtensions/DbContextBulkTransaction.cs:line 45
at EFCore.BulkExtensions.DbContextBulkExtensions.BulkInsert[T](DbContext context, IList`1 entities, BulkConfig bulkConfig, Action`1 progress, Type type) in /_/EFCore.BulkExtensions/DbContextBulkExtensions.cs:line 21
The text was updated successfully, but these errors were encountered:
I have found that using the bulk import function fails when using a Point type spatial object which maps to a POINT column type. Using add range works fine so the context is setup right but this library doesn't seem to support geometry (in my case Point) types in SQLite.
Is there anything I need to do to get this to work?
The text was updated successfully, but these errors were encountered: