RavenDB how to flush?
问题 I am using RavenDb embedded. As a part of my intergration tests I want to check objects are persisted. When I SaveChanges on an object, then retrieve it, it cannot be found unless I dispose my connection. This does not work for me, as no files are returned using (var session = _dataDocumentStore.Instance.OpenSession()) { session.Store(file); session.SaveChanges(); } .... using (var session = _dataDocumentStore.Instance.OpenSession() ) { return session.Query<File>().ToList(); } I created a