public void DeletePerson(long rowId) { using var db = new SystematizerContext(); DBUtil.DeletePerson(db, rowId); }
public CachedBox[] LoadBoxesByParent(long parentId, bool onlyNotDone) { using var db = new SystematizerContext(); return(DBUtil.LoadBoxesByParent(db, parentId, onlyNotDone).ToArray()); }
/// <summary> /// Add or delete a link between any two records involving a person (ignores other types) /// </summary> public void WritePersonLink(LinkInstruction cmd) { using var db = new SystematizerContext(); DBUtil.WritePersonLink(db, cmd); }
/// <summary> /// Write Globals.DayChunks to database; caller should ensure that object is up to date before calling this /// </summary> public void SaveDayChunks() { string dbValue = Globals.DayChunks.PackForStorage(); DBUtil.WriteSettings(s => s.ChunkInfo = dbValue); }