All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
.net中错误日志的写入_[Asp.Net教程]
上传图片生成略缩图“最佳解决”_[Asp.Net教程]
取得文件扩展名方法_[PHP教程]
ASP.NET2.0中themes、Skins轻松实现网站换肤_[Asp.Net教程]
ASP.NET中的日期与时间的处理方法_.net资料_编程技术
C#编写的生成缩略图程序_[Asp.Net教程]
php验证码显示问题解决办法_php资料_编程技术
asp.net代码实现MSSQL数据库创建及操作_[Asp.Net教程]
用PHPINFO来实现PHP的配置统计过程_php资料_编程技术
ASP.NET安装完全手册_[Asp.Net教程]
Reading number is top 10 pictures
Perfect small Laurie2
西游四格漫画(五)
西班牙山村小景3
再发一张清纯美眉的照片
NeedWallpaper9
西游四格漫画(六)
Hunan province aizhai super-large suspension bridge open to traffic and 4 world first1
30 beautiful school beauty1
BingBingFan apple dew point photo gallery3
关于提肛的健身效果
Download software ranking
美女写真1
DreamWeaver8
jBuilder2006
Be there or be square
Prostitutes diary
Eclipse 4.2.2 For Win32
圣殿祭司的ASP.NET.2.0.开发详解-使用C#
Tram sex maniac 2 (H) rar bag12
徐若瑄成名作“魔鬼天使”
I'm come from Beijing2
aaa published in(发表于) 2013/12/18 8:06:39 Edit(编辑)
也谈,.NET2.0中避免分布式事务_.net资料_编程技术

也谈,.NET2.0中避免分布式事务_.net资料_编程技术

也谈 .NET2.0中避免分布式事务_.net资料_编程技术-你的首页-uuhomepage.com
  .NET Framework 2.0 版中新增的 TransactionScope 单独使用确实很方便。但是在实际项目中都有自己的访问层,如何才能和自己的数据访问层结合起来使用呢?

  在项目中我是这样处理数据的:


/**////
/// 外包业务访问类
///

public class OutSourcingDAO
{

/**////
/// 增加
///

///
///
public int InsertGetIdentity(OutSourcing bt)
{
 return new DAHelper(DataAccess.Create()).InsertGetIdentity(bt);
}
/**////
/// 更新
///

///
///
public int Update(OutSourcing bt)
{
 return new DAHelper(DataAccess.Create()).Update(bt);
}
/**////
/// 删除
///

///
///
public int Delete(OutSourcing bt)
{
 return new DAHelper(DataAccess.Create()).Delete(bt);
}
}



添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.