在Entity Framework中使用事务
摘要:
在Entity Framework中使用事务很简单,将操作放在TransactionScope中,并通过Complete()方法提交事务即可。示例代码如下:using (BlogDbContext context =new BlogDbContext()){using (TransactionSco... 阅读全文
posted @ 2015-01-21 14:30 itjeff 阅读(241) 评论(0) 推荐(0)
浙公网安备 33010602011771号