/// <summary> /// 自定义修改 /// </summary> /// <param name="updateField">更新字段</param> /// <returns>执行成功返回true,否则为false</returns> public bool Update(TicketTypeFieldValuePair updateField) { List<TicketTypeFieldValuePair> updateFields=new List<TicketTypeFieldValuePair>(); updateFields.Add(updateField); return dataAccess.Update(updateField,null); }
/// <summary> /// 自定义修改 /// </summary> /// <param name="update">更新字段</param> /// <param name="where">条件字段</param> /// <param name="transaction">事务</param> /// <returns>执行成功返回true,否则为false</returns> public bool Update(TicketTypeFieldValuePair update,TicketTypeWhereFields where,DbTransaction transaction) { List<TicketTypeFieldValuePair> updates=new List<TicketTypeFieldValuePair> (); if(update !=null) { updates.Add(update); } List<TicketTypeWhereFields> wheres = new List<TicketTypeWhereFields>(); if(where !=null) { wheres.Add(where); } return Update(updates,wheres,transaction); }
/// <summary> /// 自定义修改 /// </summary> /// <param name="updateField">更新字段</param> /// <param name="whereField">条件字段</param> /// <returns>执行成功返回true,否则为false</returns> public bool Update(TicketTypeFieldValuePair updateField, TicketTypeWhereFields whereField) { List<TicketTypeFieldValuePair> updateFields=new List<TicketTypeFieldValuePair>(); List<TicketTypeWhereFields> whereFields= new List<TicketTypeWhereFields>(); updateFields.Add(updateField); whereFields.Add(whereField); return dataAccess.Update(updateFields,whereFields); }