资源简介
一个不错采用Entity Framework 的三层架构

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.expressions;
using System.Text;
using GYCC.Logging;
using GYCC.SMSWCF.IDAL;
using PagedList;
namespace GYCC.SMSWCF.BLL
{
public class baseBLL:MarshalByRefobject
{
protected IRepository m_baseDAL = null;
public baseBLL(string name)
{
m_baseDAL = DALFactory.DALAdapter.Createobject(name) as IRepository;
}
public T Update(T entity) where T : class
{
return m_baseDAL.Update(entity);
}
public List Update(List entitys) where T : class
{
return m_baseDAL.Update(entitys);
}
public T Insert(T entity) where T : class
{
return m_baseDAL.Insert(entity);
}
public void Delete(T entity) where T : class
{
m_baseDAL.Delete(entity);
}
public T Find(params object[] keyValues) where T : class
{
return m_baseDAL.Find(keyValues);
}
public List FindAll(expression> conditions = null) where T : class
{
return m_baseDAL.FindAll(conditions);
}
public IPagedList FindAllByPage(expression> conditions expression> orderBy int pageSize int pageIndex) where T : class
{
return m_baseDAL.FindAllByPage(conditions orderBy pageSize pageIndex);
}
public bool IsExist(params object[] keyValues) where T: class
{
bool isExist = false;
T t = m_baseDAL.Find(keyValues);
if ( t != null )
{
isExist = true;
}
return isExist;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 222 2014-02-16 12:10 IDAL\IEnterprise.cs
文件 780 2014-02-25 18:16 IDAL\IRepository.cs
文件 14336 2014-02-15 16:54 PagedList.dll
文件 1897 2014-02-28 09:04 BLL\ba
文件 2444 2014-03-03 09:52 BLL\BLLAdapter.cs
文件 4106 2014-03-04 09:33 BLL\EnterpriseBLL.cs
文件 3222 2014-03-03 09:52 DAL\DALAdapter.cs
文件 2572 2014-02-25 18:16 DAL\DALba
文件 1890 2014-03-03 09:52 DAL\DALContext.cs
文件 255 2014-02-16 12:10 DAL\EnterpriseDAL.cs
目录 0 2014-03-23 12:00 IDAL
目录 0 2014-03-23 11:55 BLL
目录 0 2014-03-23 11:59 DAL
----------- --------- ---------- ----- ----
31724 13
- 上一篇:500强企业的kpi指标
- 下一篇:Linux简答题
相关资源
- Reparatory Effects of Nicotine on NMDA Recepto
- 实现小波变换例子 upcoef 函数
- 简单三层架构,经典小程序
- wireless系列工具源码,附iwpriviwlistiw
- Z玻色子衰变的标准模型EFT校正
- hxdef100源码、远控、后门
- Furan-BDOPV Donor-Acceptor Polymers with Plana
- Effects of the cultured Cordyceps exopolysacch
- Effect of dietary nitrate dosage on gas produc
- Research on pharmacological effects of lycorin
- 使用νν$$ \\ left\\ overline {\\ nu} \\
- MT6771T_LTE-A_Smartphone_Application_Processor
- 聚电解质溶菌酶在氯盐水溶液中Maxw
- UEFI下使用Ghost一键安装还原GPT分区系
- Hall effect of reactive sputtered iron nitride
- Can EC-MPS reduce gastrointestinal side effect
- 思科助Beneficial金融集团统一通信
- Laboratory investigation of the effects of str
- An investigation into the effect of maize prod
- 西班牙Telefonica电信公司采用Sun数据仓
- CuteFTP8.0绿色破解版免安装无需序列号
- Advanced.EFS.Data.Recovery4.20(含注册码中
- CuteFTP8.0简体中文破解版
- New Analytical Solution of a Generalized Negat
- Sinusoid envelope voltammetry - A novel voltam
- Software Defined Storage For Dummies
- Addison Wesley Refactoring To Patterns.pdf
- Forefront让CableWireless从容面对垃圾邮件
- API实现ping测试源码通信测试_API测试源
- SecureFX版本7注册机
评论
共有 条评论