Beispiel #1
0
 public void DeletePerson(long rowId)
 {
     using var db = new SystematizerContext();
     DBUtil.DeletePerson(db, rowId);
 }
Beispiel #2
0
 public CachedBox[] LoadBoxesByParent(long parentId, bool onlyNotDone)
 {
     using var db = new SystematizerContext();
     return(DBUtil.LoadBoxesByParent(db, parentId, onlyNotDone).ToArray());
 }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
        /// <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);
        }