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