koenbeuk / EntityFrameworkCore.Projectables

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

Projections aren't working in published app #98

Open jomhyre opened 8 months ago

jomhyre commented 8 months ago

I am having a problem where this library is working perfectly in development with dotnet dev, but when I run the app generated with dotnet publish -c Release, none of the mappings seem to exist, and I get error messages like:

The LINQ expression '...' could not be translated. Additional information: Translation of member 'ProjectedProperty' on entity type 'Entity' failed. This commonly occurs when the specified member is unmapped

I tried enabling Full Compatibility mode but the problem remains. My project is targeting net7.0, and I building and running on linux. I can provide more info if needed