public int UpdateUser(User user) { using (var db = DbContext.Instance.GetDbConnection()) { var result = db.Update(user); return result; } }
public async Task<int> UpdateUserAsync(User user) { var result = await Conn.UpdateAsync(user); return result; }
public async Task<int> InsertUserAsync(User user) { var result = await Conn.InsertAsync(user); return result; }