Exemplo n.º 1
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin实体列表</returns>
 public List<AdminModel> GetAdminList(DataBaseType dbType,AdminWhereFields whereField,AdminOrderFields orderField)
 {
     List<AdminWhereFields> whereFields = new List<AdminWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<AdminOrderFields> orderFields = new List<AdminOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return GetAdminList(dbType,null,whereFields,orderFields);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin实体列表</returns>
 public List<AdminModel> GetAdminList(AdminWhereFields whereField,AdminOrderFields orderField)
 {
     return GetAdminList(DataBaseType.Read,whereField,orderField);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="topNumber">Top数量</param>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin表格</returns>
 public DataTable GetTopAdminTable(DataBaseType dbType,int topNumber,AdminWhereFields whereField,AdminOrderFields orderField)
 {
     List<AdminWhereFields> whereFields = new List<AdminWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<AdminOrderFields> orderFields = new List<AdminOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return dataAccess.GetTopAdminTable(dbType,topNumber,null,whereFields,orderFields);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin表格</returns>
 public DataTable GetAdminTable(AdminWhereFields whereField,AdminOrderFields orderField)
 {
     return GetAdminTable(DataBaseType.Read,whereField,orderField);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="topNumber">Top数量</param>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin实体列表</returns>
 public List<AdminModel> GetTopAdminList(int topNumber,AdminWhereFields whereField,AdminOrderFields orderField)
 {
     List<AdminWhereFields> whereFields = new List<AdminWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<AdminOrderFields> orderFields = new List<AdminOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return dataAccess.GetTopAdminList(topNumber,null,whereFields,orderFields);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin表格</returns>
 public DataTable GetAdminTable(DataBaseType dbType,AdminOrderFields orderField)
 {
     List<AdminOrderFields> orderFields = new List<AdminOrderFields>();
     orderFields.Add(orderField);
     return dataAccess.GetAdminTable(dbType,null,null,orderFields);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="whereField">条件字段</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin表格</returns>
 public DataTable GetAdminTable(AdminWhereFields whereField,AdminOrderFields orderField)
 {
     List<AdminWhereFields> whereFields = new List<AdminWhereFields>();
     if(whereField !=null)
     {
          whereFields.Add(whereField);
     }
     List<AdminOrderFields> orderFields = new List<AdminOrderFields>();
     if(orderField !=null)
     {
          orderFields.Add(orderField);
     }
     return dataAccess.GetAdminTable(null,whereFields,orderFields);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="dbType">数据库类型</param>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin实体列表</returns>
 public List<AdminModel> GetAdminList(DataBaseType dbType,AdminOrderFields orderField)
 {
     List<AdminOrderFields> orderFields = new List<AdminOrderFields>();
     orderFields.Add(orderField);
     return dataAccess.GetAdminList(dbType,null,null,orderFields);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Admin 自定义查询操作
 /// </summary>
 /// <param name="orderField">排序字段</param>
 /// <returns>返回Admin实体列表</returns>
 public List<AdminModel> GetAdminList(AdminOrderFields orderField)
 {
     List<AdminOrderFields> orderFields = new List<AdminOrderFields>();
     orderFields.Add(orderField);
     return dataAccess.GetAdminList(null,null,orderFields);
 }