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