TaoBaoKe.Bll/AppKeyBll.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using TaoBaoKe.DalFactory;
using TaoBaoKe.IDal;
using TaoBaoKe.Model;
using TaoBaoKe.Utility;
namespace TaoBaoKe.Bll
{
public class AppKeyBll//add by luozi 6-22
{
private static readonly IAppKeyDal Dal = DataAccess.CreateAppKeyDal();
public AppKeyBll() { }
public bool Add(AppKey obj)
{
return Dal.Add(obj);
}
public bool Update(AppKey obj)
{
return Dal.Update(obj);
}
public bool Delete(int _id)
{
return Dal.Delete(_id);
}
public AppKey GetModel(int id)
{
return Dal.GetModel(id);
}
public IList GetAllList(string orderBy)
{
return Dal.GetList(null, orderBy, null);
}
public IList GetList(string where, string orderBy, IDictionary namedParas)
{
return Dal.GetList(where, orderBy, namedParas);
}
public int GetNewId()
{
string strSql = "select top 1 Id from AppKey order by Id desc";
object existMaxId = Dal.GetScalar(strSql, true, null);
int Id = 1;
if (existMaxId != null)
{
Id = IntegerHandling.GetInteger(existMaxId) + 1;
}
return Id;
}
public IList GetList(AppKeySearchParameters appKeySearchParameters, string orderBy, int pageIndex, int pageSize, out int recordCount)
{
IDictionary namedParas = new Hashtable();
string where = GetWhereByAppKeySearchParameters(appKeySearchParameters, namedParas);
后面还有 45 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
