Пример #1
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Remark实体列表</returns>
 public List<RemarkModel> GetRemarkList(DataBaseType dbType,RemarkWhereFields whereField,RemarkOrderFields orderField)
 {
     List<RemarkWhereFields> whereFields = new List<RemarkWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<RemarkOrderFields> orderFields = new List<RemarkOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return dataAccess.GetRemarkList(dbType,null,whereFields,orderFields);
 }
Пример #2
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="whereFields">条件字段</param>
 /// <returns>返回Remark实体列表</returns>
 public List<RemarkModel> GetRemarkList(RemarkWhereFields whereFields)
 {
     return dataAccess.GetRemarkList(whereFields);
 }
Пример #3
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="whereFields">条件字段</param>
 /// <returns>返回Remark实体列表</returns>
 public List<RemarkModel> GetRemarkList(DataBaseType dbType,RemarkWhereFields whereFields)
 {
     return dataAccess.GetRemarkList(dbType,whereFields);
 }
Пример #4
0
 /// <summary>
 /// 自定义修改
 /// </summary>
 /// <param name="update">更新字段</param>
 /// <param name="where">条件字段</param>
 /// <param name="transaction">事务</param>
 /// <returns>执行成功返回true,否则为false</returns>
 public bool Update(List<RemarkFieldValuePair> update, RemarkWhereFields where,DbTransaction transaction)
 {
     List<RemarkWhereFields> wheres = new List<RemarkWhereFields>();
     wheres.Add(where);
     return Update(update, wheres,transaction);
 }
Пример #5
0
 /// <summary>
 /// 自定义删除
 /// </summary>
 /// <param name="whereField">删除条件</param>
 /// <returns>执行成功返回true,否则为false</returns>
 public bool Delete(RemarkWhereFields whereField)
 {
     List<RemarkWhereFields> whereFields = new List<RemarkWhereFields> ();
        whereFields.Add(whereField);
       return dataAccess.Delete(whereFields);
 }
Пример #6
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="whereFields">条件字段</param>
 /// <returns>返回Remark表格</returns>
 public DataTable GetRemarkTable(DataBaseType dbType,RemarkWhereFields whereFields)
 {
     return dataAccess.GetRemarkTable(dbType,whereFields);
 }
Пример #7
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="topNumber">Top数量</param>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Remark表格</returns>
 public DataTable GetTopRemarkTable(DataBaseType dbType,int topNumber,RemarkWhereFields whereField,RemarkOrderFields orderField)
 {
     List<RemarkWhereFields> whereFields = new List<RemarkWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<RemarkOrderFields> orderFields = new List<RemarkOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return dataAccess.GetTopRemarkTable(dbType,topNumber,null,whereFields,orderFields);
 }
Пример #8
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Remark实体列表</returns>
 public List<RemarkModel> GetRemarkList(RemarkWhereFields whereField,RemarkOrderFields orderField)
 {
     return GetRemarkList(DataBaseType.Read,whereField,orderField);
 }
Пример #9
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="where">条件字段</param>
 /// <returns>返回Remark表格</returns>
 public DataTable GetRemarkTable(DataBaseType dbType,RemarkWhereFields where)
 {
     List<RemarkWhereFields> whereFields = new List<RemarkWhereFields>();
       whereFields.Add(where);
       return GetRemarkTable(dbType,null,whereFields,null);
 }
Пример #10
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="where">条件字段</param>
 /// <returns>返回Remark实体列表</returns>
 public List<RemarkModel> GetRemarkList(DataBaseType dbType,RemarkWhereFields where)
 {
     List<RemarkWhereFields> whereFields = new List<RemarkWhereFields>();
       whereFields.Add(where);
       return GetRemarkList(dbType,null,whereFields,null);
 }
Пример #11
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="where">条件字段</param>
 /// <returns>返回Remark实体列表</returns>
 public List<RemarkModel> GetRemarkList(RemarkWhereFields where)
 {
     return GetRemarkList(DataBaseType.Read,where);
 }
Пример #12
0
 /// <summary>
 /// 自定义删除
 /// </summary>
 /// <param name="where">删除条件</param>
 /// <param name="transaction">事务</param>
 /// <returns>执行成功返回true,否则为false</returns>
 public bool Delete(RemarkWhereFields where,DbTransaction transaction)
 {
     List<RemarkWhereFields> wheres = new List<RemarkWhereFields> ();
        wheres.Add(where);
        return Delete(wheres,transaction);
 }
Пример #13
0
 /// <summary>
 /// 自定义删除
 /// </summary>
 /// <param name="where">删除条件</param>
 /// <returns>执行成功返回true,否则为false</returns>
 public bool Delete(RemarkWhereFields where)
 {
     List<RemarkWhereFields> wheres = new List<RemarkWhereFields> ();
        wheres.Add(where);
        return Delete(wheres);
 }
Пример #14
0
 /// <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);
 }
Пример #15
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="whereFields">条件字段</param>
 /// <returns>返回Remark表格</returns>
 public DataTable GetRemarkTable(RemarkWhereFields whereFields)
 {
     return dataAccess.GetRemarkTable(whereFields);
 }
Пример #16
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="where">条件字段</param>
 /// <returns>返回Remark表格</returns>
 public DataTable GetRemarkTable(RemarkWhereFields where)
 {
     return  GetRemarkTable(DataBaseType.Read,where);
 }
Пример #17
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Remark表格</returns>
 public DataTable GetRemarkTable(RemarkWhereFields whereField,RemarkOrderFields orderField)
 {
     List<RemarkWhereFields> whereFields = new List<RemarkWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<RemarkOrderFields> orderFields = new List<RemarkOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return dataAccess.GetRemarkTable(null,whereFields,orderFields);
 }
Пример #18
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Remark表格</returns>
 public DataTable GetRemarkTable(DataBaseType dbType,RemarkWhereFields whereField,RemarkOrderFields orderField)
 {
     List<RemarkWhereFields> whereFields = new List<RemarkWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<RemarkOrderFields> orderFields = new List<RemarkOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return GetRemarkTable(dbType,null,whereFields,orderFields);
 }
Пример #19
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="topNumber">Top数量</param>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Remark实体列表</returns>
 public List<RemarkModel> GetTopRemarkList(int topNumber,RemarkWhereFields whereField,RemarkOrderFields orderField)
 {
     List<RemarkWhereFields> whereFields = new List<RemarkWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<RemarkOrderFields> orderFields = new List<RemarkOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return dataAccess.GetTopRemarkList(topNumber,null,whereFields,orderFields);
 }
Пример #20
0
 /// <summary>
 /// Remark 自定义查询操作
 /// </summary>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Remark表格</returns>
 public DataTable GetRemarkTable(RemarkWhereFields whereField,RemarkOrderFields orderField)
 {
     return GetRemarkTable(DataBaseType.Read,whereField,orderField);
 }
Пример #21
0
 /// <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);
 }
Пример #22
0
 /// <summary>
 /// 自定义修改
 /// </summary>
 /// <param name="update">更新字段</param>
 /// <param name="where">条件字段</param>
 /// <returns>执行成功返回true,否则为false</returns>
 public bool Update(List<RemarkFieldValuePair> update,RemarkWhereFields where)
 {
     List<RemarkWhereFields> wheres = new List<RemarkWhereFields>();
     wheres.Add(where);
     return Update(update, wheres);
 }