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