Business Object Constructors


Author
Message
Chris Crabtree
Chris Crabtree
StrataFrame Novice (57 reputation)StrataFrame Novice (57 reputation)StrataFrame Novice (57 reputation)StrataFrame Novice (57 reputation)StrataFrame Novice (57 reputation)StrataFrame Novice (57 reputation)StrataFrame Novice (57 reputation)StrataFrame Novice (57 reputation)StrataFrame Novice (57 reputation)
Group: Forum Members
Posts: 57, Visits: 107
Whenever I write a class with multiple constructors, I like to also create a ConstructorCommon() method that is called from each overloaded constructor.

Obviously, this method is a good place for dropping code in common to each of the overloads.

So I'd like to see the generated SF Business Object classes (those inheriting from MicroFour.StrataFrame.Business.BusinessLayer, specifically) adopt a similar idiom.

This came up for me today as I had to set PrimaryKeyIsAutoIncremented to false on a BO. Not a big deal, but the right place to do it is in the BO constructor, which meant that I had to do it in all three constructors.

Which again three constructors is not overly-taxing to modify, but as the framework grows over time, it's reasonable to assume the BOs will evolve to having more constructors and not fewer, so the leverage of a ConstructorCommon() method would grow over time.

Thanks!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Chris Crabtree - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Chris Crabtree - 18 Years Ago
                 I posted a sample of how to do this at this post:...
Trent L. Taylor - 18 Years Ago
Chris Crabtree - 18 Years Ago
                         hehe...I understand.
Trent L. Taylor - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search