I'm using EF Core (v1.1.3) and C#.
In my unit tests I create a sqlite in-memory database using the code-first db model, and then populate it with some test data. However when loading a list of entities from the dB, then related entities are getting populated, despite no '.Include' being used.
If I use the same model to create an actual on-disk database and the do the same load, then the related entities only get loaded if I use an .Include
.
Is this a bug in the sqlite in-memory implementation (v1.1.0), or am I missing something?
I have already checked that there is nothing being tracked in the database, and obviously I can't dispose the context and renew it because of it being in-memory, and I'm limited to this version of EF & Sqlite currently, due to legacy reasons.
Obviously I'd prefer to have an in-memory option for unit tests rather than start creating on-disk tests, for the performance.