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

HasSchema(null) does not override DbFunction attribute #24228

Closed
cincuranet opened this issue Feb 23, 2021 · 2 comments · Fixed by #25031
Closed

HasSchema(null) does not override DbFunction attribute #24228

cincuranet opened this issue Feb 23, 2021 · 2 comments · Fixed by #25031
Labels
area-model-building breaking-change closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported type-enhancement
Milestone

Comments

@cincuranet
Copy link
Contributor

Having DbFunction(Schema = "foo") and later using HasSchema(null) does not remove the schema from the model. Using HasSchema("bar") works fine.

EF Core version: 5.0.3

@roji
Copy link
Member

roji commented Feb 23, 2021

Seems like this is because we reset the configuration source to null when the schema is explicitly set to null (another one of these philosophical null questions :)).

@ajcvickers
Copy link
Member

Note from triage: we will change the behavior here to remove the set schema when null is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-model-building breaking-change closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported type-enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants