-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom value conversion fails for byte[] property to GEOMETRY SQL column. #1921
Comments
@lauxjpn - Could you please take a look at this when you get a chance? Its currently blocking our update to .NET 8. Thanks. |
anasgauba
pushed a commit
to anasgauba/Pomelo.EntityFrameworkCore.MySql
that referenced
this issue
Jul 31, 2024
…ype is of non-NTS type. plus added unit test. - regression introduced in commit [3ef628f](PomeloFoundation@3ef628f#diff-4f1d25d8c94e4764d1beef032d7ecc17efaf6a2f592db3dab748bac1d7fc0446R87) Refs PomeloFoundation#1921
anasgauba
pushed a commit
to anasgauba/Pomelo.EntityFrameworkCore.MySql
that referenced
this issue
Oct 8, 2024
…rlier conversion of custom mapping fix. - The Geometry column mapping issue is caused when the storeTypeName is null as a result of user's not specifying `.HasColumnType()` in their entity configuration. - We still cannot use defaultStoreType when storeTypeName is null because then we cannot do custom value conversion such as mapping non-NTS types (byte[]) to NTS geometry types as was intended with the previous commits. See PomeloFoundation#1921
@lauxjpn Any update on this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
The following code below sets up EF model configuration for a CLR property to GEOMETRY sql type with a custom converter but in Pomelo.EntityFrameworkCore.MySql.NetTopologySuite v8.0.1 onwards, the custom converter is not respected.
Program.cs
The issue
In v8.0.1+, the custom converter is not respected and the program throws a fatal exception below:
NOTE: This was working in v8.0.0. Failing since Pomelo.EntityFrameworkCore.MySql.NetTopologySuite 8.0.1 version.
Further technical details
MySQL version: 8.0.28
Operating system: Windows 11
Pomelo.EntityFrameworkCore.MySql version: 8.0.1
Pomelo.EntityFrameworkCore.MySql.NetTopologySuite version: 8.0.1+
The text was updated successfully, but these errors were encountered: