public LiteDBv4.LiteFileInfo GetFileObject(DocumentReference document)
 {
     return(Database.LiteDatabase.FileStorage.FindById(document.LiteDocument["_id"]));
 }
 public override void RemoveItem(DocumentReference document)
 {
     Database.LiteDatabase.FileStorage.Delete(document.LiteDocument["_id"]);
     Items.Remove(document);
 }
        public void SaveFile(DocumentReference document, string path)
        {
            var file = GetFileObject(document);

            file.SaveAs(path);
        }
 public virtual void RemoveItem(DocumentReference document)
 {
     LiteCollection.Delete(document.LiteDocument["_id"]);
     Items.Remove(document);
 }