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 p
I think the best approach is coding it within a using statement
using(var cx = new DbContext()) { //your stuff here }
so it got automaitaclly disposed