Dal/DProductSort.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Model;
using System.Data.SqlClient;
namespace Dal
{
public class DProductSort
{
/// <summary>
/// 获得数据列表
/// </summary>
public DataTable GetList()
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select * ");
strSql.Append(" FROM ProductSort order by PS_Order asc");
return OLEDBHelper.FileDataTable(strSql.ToString(), null, CommandType.Text);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataTable GetListValue(string count,string value)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select "+count+" * FROM ProductList ");
strSql.Append(value);
strSql.Append(" order by P_Order asc");
return OLEDBHelper.FileDataTable(strSql.ToString(), null, CommandType.Text);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataTable GetListValue(string value)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select top 3 * FROM ProductList ");
strSql.Append(value);
strSql.Append(" order by P_Order asc");
return OLEDBHelper.FileDataTable(strSql.ToString(), null, CommandType.Text);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataTable GetList(string Where)
{
if(string.IsNullOrEmpty(Where))
{
后面还有 250 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
