DAL/IndexDAL.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entitry;
using Common;
using System.Data.SqlClient;
namespace DAL
{
public class IndexDAL
{
public static List<Recuit> Search_Recuit(string txt)
{
if (txt=="")
{
List<Recuit> rslist = new List<Recuit>();
return rslist;
}
string sql = "select PositionType from recuit where PositionType like '%" + txt + "%'";
SqlDataReader dr = DBHelp.SelectData(sql);
List<Recuit> rlist = new List<Recuit>();
while (dr.Read())
{
Recuit r = new Recuit();
r.PositionType = (string)dr["PositionType"];
rlist.Add(r);
}
dr.Close();
return rlist;
}
public static List<company> Search_company(string txt)
{
if (txt == "")
{
List<company> colist = new List<company>();
return colist;
}
string sql = "select CText from company where CText like '%" + txt + "%'";
SqlDataReader dr = DBHelp.SelectData(sql);
List<company> clist = new List<company>();
while (dr.Read())
{
company c = new company();
c.CText = (string)dr["CText"];
clist.Add(c);
}
dr.Close();
return clist;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。