EntityFramework:我想我需要和 Session.Save 语义一样的方法
摘要:
背景EntityFramework 中 DbSet.Add 方法不会导致立即执行 insert 语句,这在长事务中非常有用,不过多数用例都是短事务的,为何我需要一个立即执行 insert 语句的方法呢?本文就是在思考这个问题。先看一个代码代码 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 using EntityFrameworkStudy.Studys; 8 9 namespa.. 阅读全文
posted @ 2013-10-11 09:19 幸福框架 阅读(1374) 评论(13) 推荐(1)
浙公网安备 33010602011771号