EntityFrameworkCore.Projectables icon indicating copy to clipboard operation
EntityFrameworkCore.Projectables copied to clipboard

Projections aren't working in published app

Open jomhyre opened this issue 1 year ago • 0 comments

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

jomhyre avatar Feb 07 '24 10:02 jomhyre