koenbeuk / EntityFrameworkCore.Projectables

Project over properties and functions in your linq queries
MIT License
297 stars 20 forks source link

Generated source is missing namespaces #46

Closed jhartmann123 closed 1 year ago

jhartmann123 commented 1 year ago

Situation:
We have an extension method that cannot be found in the generated source, as the namespace of it does not get imported.

It looks like that namespaces do not get imported, if "children" of it are already present.

Tested with versions 2.3.0 and 3.0.0-beta.1

Repro: Projectables.ExtensionMethod.zip

Projectables.ExtensionMethod.Foo.ResultExtensions contains a [Projectable]-Method, which uses two extension methods:

While Projectables.ExtensionMethod.Extensions does get imported in the generated source, Projectables.ExtensionMethod does not, resulting in the error image