internal void ClearDatabase() { using (IDocumentSession session = DocumentStore.LightweightSession()) { session.DeleteWhere <UptimeCheckData>(x => true); session.SaveChanges(); } }
public void Wipe() { using (IDocumentSession session = _documentStore.OpenSession()) { session.DeleteWhere <TUser>(x => true); session.SaveChanges(); } }
public string post_marten_writes() { var random = new Random().Next(); var targets = Target.GenerateRandomData(random); _session.Store(targets.ToArray()); _session.DeleteWhere <Target>(x => x.Double > 12); return("ok"); }
public Task RemoveAllAsync(string subjectId, string clientId) { _documentSession.DeleteWhere <Entities.PersistedGrant>(grant => grant.SubjectId == subjectId && grant.ClientId == clientId); return(_documentSession.SaveChangesAsync()); }