public Task FindOneAndReplaceAsync(TEntity entity)
 {
     return(_database.UpdateAsync(BuildEntity(entity, true)));
 }
 public virtual Task UpdateAsync <TPoco>(TPoco poco, string kind) where TPoco : new()
 {
     return(datastoreDb.UpdateAsync(orm.PocoToEntity(poco, kind)));
 }
Example #3
0
 public async Task UpdateAsync(TEntity obj)
 {
     var entity = BuildEntity(obj, true);
     await _db.UpdateAsync(entity);
 }