阅读背景:

是否需要处置实体框架上下文对象

来源:互联网 

We are using entity framework for communication with database in our WCF service methods, recently we run the code review tool on our service code. As usual we got many review proposals by tool and many review comments were suggesting to dispose the Entity Framework context object. So, my question is if I use a Entity Framework context object within a method and once I come out of the method, GC doesn't clean up the context object ? do we need to explicitly dispose context object ?We are using entity framework for communication




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: