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);
        }
Ejemplo n.º 4
0
 public virtual void RemoveItem(DocumentReference document)
 {
     LiteCollection.Delete(document.LiteDocument["_id"]);
     Items.Remove(document);
 }