public void Update(Message message) { using (var uow = _db.GetTransaction()) { _db.Update(message); uow.Complete(); } }
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(); } }