So, after some debugging, I found a way to attach to a given database by code. See the sample project at http://www.terwoord.nl/SQLiteEF6Test.zip
The project starts with retrieving a temporary file. It then saves a sample entity MyMessageObj. Next it retrieves it in a new DbContext. In a nested DbContext, it also retrieves the entity, but changes it and saves it to the database. After flushing the changes, it reloads the entity in the outer DbContext. Here's what's going wrong (The sample throws an exception). It loads the old value. What am I doing wrong here? Thanks in advance! Regards, Matthijs ter Woord _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users