StrataFrame Forum

Override dispose method

http://forum.strataframe.net/Topic28677.aspx

By ChanKK - 10/13/2010

Hi
I have added new property to hold / create another BO A within BO C. I would like to have clean up code whenever BO C is dispose. I tried to override Dispose() however, I found that it is generated under designer.cs. How could I have my clean up code outside of designer.cs as it will always be regenerated / overwritten?

Thank you
By Greg McGuffey - 10/13/2010

I just move it to the normal file (with your fill methods etc.) and customize it there.  Then when it gets overwritten, you'll get a compile error and know to go delete it in the designer again.

I'll investigate a more elegant solution for the future...
By ChanKK - 10/14/2010

I hope SF can provide permanent solution.

Thank you