Skip to content
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

Document the new enum/plugins setup #351

Closed
zotanmew opened this issue Sep 12, 2024 · 1 comment · Fixed by #352
Closed

Document the new enum/plugins setup #351

zotanmew opened this issue Sep 12, 2024 · 1 comment · Fixed by #352
Assignees
Milestone

Comments

@zotanmew
Copy link

I've been testing version 9.0.0-preview.7 on .NET 9.0 RC1 and I'm getting the following errors:

Failed executing DbCommand (10ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      UPDATE jobs AS j
      SET status = 0
      WHERE j.status = 2

As this exception does not happen on .NET 8.0, with efcore.pg version 8.0.4, I assume that the enum mapping is not working correctly on this version.

I'm mapping the enums using NpgsqlDataSourceBuilder.MapEnum<T>().

@roji
Copy link
Member

roji commented Sep 12, 2024

Yeah, there have been some changes in the area that impact the way enums need to be configured. I'll document this soon.

@roji roji transferred this issue from npgsql/efcore.pg Sep 13, 2024
@roji roji changed the title Enum mapping not working in 9.0.0-preview.7 Document the new enum/plugins setup Sep 13, 2024
@roji roji self-assigned this Sep 13, 2024
@roji roji added this to the 9.0.0 milestone Sep 13, 2024
roji added a commit to roji/Npgsql.Doc that referenced this issue Sep 13, 2024
@roji roji closed this as completed in #352 Sep 13, 2024
@roji roji closed this as completed in c12440d Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants