BO's as properties


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I have classes setup with BO's as properties.

private MyBO _boname = null;
private MyBO boname
{
   get
   {
      if (_boname == null)
         _boname = new MyBO();
      return _boanme;
   }
}

My question is I remember reading some where in the documentation that when a BO is created thru code that the Dispose() method should be called.  Where would I be putting that call?  Should I even be doing something like this?  I have done this on some BO's that require using other BO's to complete a process, that way the helper BO's don't need to be created unless they are needed.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Scott - 19 Years Ago
StrataFrame Team - 19 Years Ago
             Thanks for the info, will do.
Scott - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search