Disposing EntityCollections

Posts   
 
    
tmatelich
User
Posts: 95
Joined: 14-Oct-2009
# Posted on: 10-Oct-2018 15:35:26   

LLBLGen Pro v4.2

Coverity is nagging me about disposing my EntityCollection<T>s when exceptions are theoretically thrown before calling SaveEntityCollection. Trying to decide whether to litter dozens of using's around the codebase or dismiss these warnings.

Thanks!

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 10-Oct-2018 21:01:00   

Usually you don't need to, but please check this thread, same subject was discussed there. http://llblgen.com/TinyForum/Messages.aspx?ThreadID=24497

tmatelich
User
Posts: 95
Joined: 14-Oct-2009
# Posted on: 10-Oct-2018 21:07:05   

Thanks, not sure how I failed to find that searching.