Exemplo n.º 1
0
 public bool RenameCollection(string oldName, string newName)
 {
     DLiteUtil.Whisper(Name, "RenameCollection", new object[] { oldName, newName });
     return db.Value.RenameCollection(oldName, newName);
 }
Exemplo n.º 2
0
 public bool DropCollection(string name)
 {
     DLiteUtil.Whisper(Name, "DropCollection", new object[] { name });
     return db.Value.DropCollection(name);
 }
Exemplo n.º 3
0
 public int Delete(Query query)
 {
     DLiteUtil.Whisper(Name, "Delete", new object[] { query });
     return(LiteCollection.Delete(query));
 }
Exemplo n.º 4
0
 public bool DropIndex(string name)
 {
     DLiteUtil.Whisper(Name, "DropIndex", new object[] { name });
     return(LiteCollection.DropIndex(name));
 }
Exemplo n.º 5
0
 public bool Delete(BsonValue id)
 {
     DLiteUtil.Whisper(Name, "Delete", new object[] { id });
     return(LiteCollection.Delete(id));
 }
Exemplo n.º 6
0
 public int Delete(Expression <Func <T, bool> > predicate)
 {
     DLiteUtil.Whisper(Name, "Delete", new object[] { predicate });
     return(LiteCollection.Delete(predicate));
 }
Exemplo n.º 7
0
 public int Update(IEnumerable <T> entities)
 {
     DLiteUtil.Whisper(Name, "Update", new object[] { entities });
     return(LiteCollection.Update(entities));
 }
Exemplo n.º 8
0
 public bool Update(T entity)
 {
     DLiteUtil.Whisper(Name, "Update", new object[] { entity });
     return(LiteCollection.Update(entity));
 }
Exemplo n.º 9
0
 public bool Update(BsonValue id, T entity)
 {
     DLiteUtil.Whisper(Name, "Update", new object[] { id, entity });
     return(LiteCollection.Update(id, entity));
 }
Exemplo n.º 10
0
 public int InsertBulk(IEnumerable <T> entities, int batchSize = 5000)
 {
     DLiteUtil.Whisper(Name, "InsertBulk", new object[] { entities, batchSize });
     return(LiteCollection.InsertBulk(entities, batchSize));
 }
Exemplo n.º 11
0
 public BsonValue Insert(T entity)
 {
     DLiteUtil.Whisper(Name, "Insert", new object[] { entity });
     return(LiteCollection.Insert(entity));
 }
Exemplo n.º 12
0
 public int Insert(IEnumerable <T> entities)
 {
     DLiteUtil.Whisper(Name, "Insert", new object[] { entities });
     return(LiteCollection.Insert(entities));
 }
Exemplo n.º 13
0
 public void Insert(BsonValue id, T entity)
 {
     DLiteUtil.Whisper(Name, "Insert", new object[] { id, entity });
     LiteCollection.Insert(id, entity);
 }