-
Notifications
You must be signed in to change notification settings - Fork 877
Support for non-generic Enum mapping #4852
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
Support for non-generic Enum mapping #4852
Conversation
|
Hey @roji, Just wanted to check in with you about the refactoring in NpgsqlDataSourceBuilder. I noticed that most of the code is in NpgsqlSlimDataSourceBuilder now. Do you think it would make sense for me to move the non-generic enum methods there? Or are there still more changes planned for this module? Sorry if these are silly questions. I'm pretty new to open-source contributions and just want to make sure I'm doing things correctly. I'm excited to merge my changes with the main branch and tackle the next issue! Thanks so much for your help. |
|
@BogdanYarotsky your questions aren't silly at all, they make total sense. And sorry we haven't already reviewed and merged your PR, there's just a lot going on. We've refactored NpgsqlDataSourceBuilder to be mostly a wrapped around NpgsqlSlimDataSourceBuilder, which automatically opts into various features that people don't necessarily want when working in NativeAOT mode (either because they aren't compatible with NativeAOT, or because they increase the size and should be opt-in). So you should follow the same pattern and do the implementation in NpgsqlSlimDataSourceBuilder, with a wrapping in NpgsqlDataSourceBuilder. Basically follow what you see for the generic version. |
|
@roji thank you for the heads-up! I'll keep this in mind and will update the PR this week. |
|
Hi @roji, |
d2bddaa to
02d8578
Compare
|
@BogdanYarotsky I've fixed all the conflicts and updated the branch to be rebased on main. There were quite some changes here after #5123. We should be able to merge it some time soon! |
|
@NinoFloris that's great news! Thank you for the rebase and the info 🙂 Just ping me if an action is needed from my side. |
02d8578 to
4eb9273
Compare
Hi @roji, @vonzshik,
Changes resolve #3383 by adding non-generic Map/UnmapEnum methods to INpgsqlTypeMapper.
This PR replaces the old one - #4629.
Since ConnectorTypeMapper was removed, it was easier to create a new one.
I took all comments from the previous pull request into account.
Best regards and Happy New Year :)
Bogdan