Entity Collection Dispose

Posts   
 
    
LloydM
User
Posts: 17
Joined: 05-Dec-2007
# Posted on: 18-Feb-2008 19:30:24   

Entity collections expose a Dispose method, so should I be wrapping them within a Using block? None of the examples I've seen so far in the documentation do this.

Please advise.

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 18-Feb-2008 21:39:57   

the Dispose method is inherited by default from System.ComponentModel, so It's not necessary to dispose the collection yourself.

LloydM
User
Posts: 17
Joined: 05-Dec-2007
# Posted on: 26-Feb-2008 21:26:06   

goose,

Thanks for your response.