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

Allow CoreTypeMapping.GenerateCodeLiteral to influence using directives #13799

Open
Tracked by #22948
ajcvickers opened this issue Oct 29, 2018 · 1 comment
Open
Tracked by #22948
Assignees
Labels
area-migrations area-scaffolding providers-beware punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. type-enhancement
Milestone

Comments

@ajcvickers
Copy link
Member

See #13747

The expression tree for literals can contain use of arbitrary types and currently these need to be namespace-qualified because we can't ensure that the appropriate using directives are added to the file.

Note that this is non-trivial to fix, since currently we generate from the top down and don't know which literals we will be generating for.

@ajcvickers
Copy link
Member Author

See also the case here: #13911 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-migrations area-scaffolding providers-beware punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. type-enhancement
Projects
None yet
Development

No branches or pull requests

4 participants