Skip to content

reading the Unicode parameter defined in the Code First mapping #1045

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

Merged
merged 1 commit into from
May 19, 2022
Merged

reading the Unicode parameter defined in the Code First mapping #1045

merged 1 commit into from
May 19, 2022

Conversation

gilsonjoanelo
Copy link
Contributor

First, I'm using Google Translate.

I am creating this PR as directed through Twitter.

I made a small change in the src/FirebirdSql.EntityFrameworkCore.Firebird/Storage/Internal/FbTypeMappingSource.cs class to detect if the code is not setting the unicode attribute, as well as I changed the src/FirebirdSql.EntityFrameworkCore.Firebird/Storage/Internal/ class FbStringTypeMapping.cs to receive the mapping value.

If the Unicode attribute is not found, the code maintains the same pattern as before. In this case the default value = true

I'm making this contribution due to the need to turn off Unicode in the company's bases, with that, I came across this ignored implementation that makes me have to rebuild the provider with each new version.

@cincuranet
Copy link
Member

cincuranet commented May 18, 2022

It all looks good to me. I think I need to check VARCHAR constants handling - there might be assumptions about stuff being UTF8.

@cincuranet cincuranet merged commit 4c36da2 into FirebirdSQL:master May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants