Example #1
0
 public void Update(Message message)
 {
     using (var uow = _db.GetTransaction())
     {
         _db.Update(message);
         uow.Complete();
     }
 }
Example #2
0
 public void UpdateFailedLoginAttempts <T>(Guid Id)
 {
     using (var uow = _db.GetTransaction())
     {
         _db.Update <T>("SET LoginAttempts = LoginAttempts + 1" +
                        "WHERE Id = @0", Id);
         uow.Complete();
     }
 }
 public void Update(IEnumerable <T> entity)
 {
     using (var uow = _db.GetTransaction())
     {
         foreach (var e in entity)
         {
             _db.Update(e);
         }
         uow.Complete();
     }
 }