Open Steve887 opened 5 days ago
7.0.20 is now out of support. Please try upgrading to 8.0.8 and create a new compiled model.
If that still doesn't work share a small runnable project that contains just enough of your model to illustrate this problem.
I have an app with a large model, so I am experimenting with a compiled model to speed up first execution time.
The compile worked fine and testing the app locally seems to work, however when running unit tests on my build agent I will get the following error only the first time the model is used:
If I comment out the
optionsBuilder.UseModel
line, it works fine every time, so it isn't anything to do with data. It's difficult for me to provide a working example because of the number of entities and properties involved. Is there anything I can do to capture more information? I've tried upping the verbosity but that doesn't provide any more information. I'm also unable to reproduce while debugging.Include provider and version information
EF Core version: 7.0.20 Database provider: Microsoft.EntityFrameworkCore.SqlServer Target framework: NET 7.0 Operating system: Linux