Geo support#34
Conversation
…workCore.BulkInsert into generic-base-provider # Conflicts: # src/PhenX.EntityFrameworkCore.BulkInsert.MySql/MySqlBulkInsertProvider.cs # src/PhenX.EntityFrameworkCore.BulkInsert.PostgreSql/PostgreSqlBulkInsertProvider.cs # src/PhenX.EntityFrameworkCore.BulkInsert.SqlServer/SqlServerBulkInsertProvider.cs # src/PhenX.EntityFrameworkCore.BulkInsert.Sqlite/SqliteBulkInsertProvider.cs # src/PhenX.EntityFrameworkCore.BulkInsert/BulkInsertOptionsExtension.cs # src/PhenX.EntityFrameworkCore.BulkInsert/BulkInsertProviderBase.cs # src/PhenX.EntityFrameworkCore.BulkInsert/Extensions/PublicExtensions.cs # tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/Tests/Basic/BasicTestsBase.cs # tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/Tests/Basic/BasicTestsMySql.cs # tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/Tests/Basic/BasicTestsPostgreSql.cs # tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/Tests/Basic/BasicTestsSqlServer.cs # tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/Tests/Basic/BasicTestsSqlite.cs
…workCore.BulkInsert into geo-support
|
I have not worked on sqlite yet, but it should look very similar. The problem is to install the binaries here. |
|
I seems like adding To the |
|
I don't know what is wrong now. I am really lost. I can't find the damn error :( |
|
Okay, I am done. I have also simplified the test fixtures a little bit and fixed a bug in the metadata provider with multiple contexts. I still have not figured out how to make Sqlite workign locally and in github, but this is probably something for another PR. |
|
OK I'll review it tonight |
|
I'm not a big fan of the NetTopologySuite dependency, did you consider resolving a ITypeMappingSource? The one for Sql server for example https://github.com/dotnet/efcore/blob/main/src/EFCore.SqlServer/Storage/Internal/SqlServerTypeMappingSource.cs |
|
I don#t get it. How would you make the conversion then? The point is the following: Geo is provided by extensions in EF, which do the actual conversion. You have to basically the same to support the correct types. NetTopologySuite seems to be the defacto standard, so largish applications have the dependency anyway. |
|
Well EF knows how to convert geo types when we call UseNetTopologySuite, so I think we should use these converters |
|
How? |
|
For exmaple we already use this method to get the correct type for postgres: But for Geography we get no mapping at all. |
|
Let me go further, I'm not sure I went deep enough in your PR |
|
Sure, I basically went from error to error. Always got something like "Cannot convert from x to y" |
|
e.g. SQL Server accepts geopoints in reverse coordination order (Y, X) not (X, Y) |
|
Ok, I thought I could find something among mapping sources, but no... |
|
There are internal APIs, they are called ProviderConverter, but I could not find any way to get access to them. |
|
A release would be awesome. |

No description provided.