EF中DataContext创建的两段代码收藏
摘要:
DataContextAutoDisposeModule1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Web;5usingSystem.Collections;6usingSystem.Data.Linq;78///<summary>9///实现自动抛弃当前数据库上下文的模块。10///</summary>11publicsealedclassDataContextAutoDisposeModule:IHttpModule12{13#regionIHttpModu 阅读全文
posted @ 2011-09-09 14:14 Bruse 阅读(348) 评论(0) 推荐(0)
浙公网安备 33010602011771号