/// <summary> /// @author : TrungMT /// @CreateDate:04/07/2008 /// @Description: Update 1 AdvProperties with AdvProperties_id /// </summary> public int Update(AdvProperties pAdvProperties) { PrAdvProperties AdvProperties = new PrAdvProperties(Connection); int intRowAffected = 0; try { Open(); intRowAffected = AdvProperties.Update(pAdvProperties); Commit(); } catch (Exception exp) { Rollback(); throw exp; } finally { Close(); } return intRowAffected; }
/// <summary> /// @author : TrungMT /// @CreateDate:04/07/2008 /// @Description: Update 1 AdvProperties with AdvProperties_id /// </summary> public int Update(DataRowCollection prowsAdvProperties) { PrAdvProperties AdvProperties = new PrAdvProperties(Connection); int intRowAffected = 0; try { Open(); AdvProperties properties = new AdvProperties(); foreach (DataRow row in prowsAdvProperties) AdvProperties.Update(row); Commit(); } catch (Exception exp) { Rollback(); throw exp; } finally { Close(); } return intRowAffected; }