public int UpdateEntity(T entity) { string storeName = GenerateProcUtility <T> .UpdateEntity(); return(Update(entity, storeName)); }
/// <summary> /// Cập nhật (có thể là thêm mới hoặc sửa) Entity (store thực hiện cập nhật chương trình sẽ tự sinh theo Template) /// </summary> /// <param name="entity">Entity truyền vào</param> /// <returns>Số lượng bản ghi cập nhật thành công</returns> /// Created By: NVCUONG (17/04/2017) public int Update(T entity) { return(base.Update <T>(entity, GenerateProcUtility <T> .UpdateEntity())); }