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
Unmapped composite types removal #3397
Comments
Could you explain why do you prefer Unmapped composite support was dropped because of it's reflection usage which is slow, inefficient and error prone. Ideally we should support generators as an addition for strongly typed composite handling. |
Hi @YohDeadfall, thanks for the quick answer. |
Just for now you can take the code of unmapped composite handler and register it for all PostgreSQL composite types except that covered by strongly typed handler. That will work. Need to think about bringing it back since I would like to redesign type handling and finish it for 6.0.
Records from C# 9 should help in that case because it's easy to write them and the driver supports constructors, as maintainers of a large project it will also bring safety to your code. |
Putting this in the backlog for now. |
@roji what is specifically in the backlog here? We could add support for reading unmapped composites as |
Unmapped composites can be read via nested readers via |
Hello everyone!
We're using npgsql for a big project and wanted to upgdate to version 5. However we noticed that support for unmapped composite types was removed.
We rely pretty heavily on ExpandoObject to pass unmapped TVP to the database. We wonder why the support was removed and how complicated would it be to bring ExpandoObject support back in V5?
The text was updated successfully, but these errors were encountered: