dotnet/efcore

HasSchema(null) does not override DbFunction attribute

cincuranet opened this issue · 2 comments

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 commented

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 :)).

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