DAL/ZsmcDAL.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using Model;
namespace DAL
{
public class ZsmcDAL
{
public static List<ZsmcMOD> GetZsmc(int KsmlID)
{
SQLHelper sqh = new SQLHelper();
SqlDataReader sr = null;
try
{
SqlParameter[] para = new SqlParameter[] { new SqlParameter("@KsmlID", SqlDbType.Int) };
para[0].Value = KsmlID;
sr = sqh.SqlExecuteReader(para, "Pro_getZsmcByKsmlID");
List<ZsmcMOD> Zsmclist = new List<ZsmcMOD>();
while (sr.Read())
{
ZsmcMOD zsmcmod = new ZsmcMOD();
zsmcmod.Id = int.Parse(sr["id"].ToString());
zsmcmod.Name = sr["name"].ToString();
Zsmclist.Add(zsmcmod);
}
return Zsmclist;
}
catch (Exception e)
{
throw e;
}
finally
{
sr.Close();
sqh.connClose();
}
}
public static DataSet GetAllZsmc()
{
SQLHelper sqh = new SQLHelper();
try
{
DataSet dataset = sqh.GetDataSet(null, "Pro_getAllZsmc");
return dataset;
}
catch (Exception ex)
{
return null;
}
finally
{
后面还有 60 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。