private void DropExecutions() { using (var repo = new NHGetAllRepository <EventExecution>()) { repo.Delete(x => x.Event == null); } }
private void DropPurchases() { using (var repo = new NHGetAllRepository <Purchase>()) { repo.Delete(x => x.Event == null); } }
public void Delete(long id) { using (var repo = new NHGetAllRepository <EventExecution>()) { repo.Delete(x => x.Event.Id == id); } base.Delete(id); }