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