-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add a parameter to Optimize-DbContext
for fully qualifying types
#27203
Comments
There is an alternative solution? My domain has many entities and I have more than 400 conflicts |
Workaround is mentioned here: #25523 (comment) |
Adding a note to help me find this in the future; fully-qualified typed for compiled model. :-) |
Just because I just saw this: should we maybe consider just always fully-qualifying? I think that's generally consider best practice in generated code (dealt with some similar issues in precompiled queries), and there's no real downside except more verbose generated code, which nobody cares about... |
Sure and we can add an opt-out instead |
FWIW it seems to be standard practice (e.g. in source generators) for generated code to just always be fully-qualified (including the |
For big models this could mean a lot of additional code, like tens of megabytes more. |
Note from triage: we should do this by default, since the code is not intended to be edited, but with a switch to turn it off due to the increase in size. |
See #25523 (comment)
The text was updated successfully, but these errors were encountered: