/// <summary> /// Updates the. /// </summary> /// <param name="query">The query.</param> /// <param name="entity">The entity.</param> /// <returns>A Task.</returns> public Task <int> UpdateAsync(IWhereQuery query, T entity) { if (query == null) { throw new Exception("query不能为null"); } return(_dbData.UpdateAsync <T>(entity, query)); }