GenWise Forums Minimize
SearchForum Home
     
  Discussions  GenWise General  Support for par...
 Support for parameterized constructors
 
lakshman
18 posts
Joined
1/7/2009

Support for parameterized constructors
Posted: 21 Dec 07 8:08 PM

I see options for generating constructor for business object with all the parameters. Is it possible for customizing the constructors to take only the required fields as parameters to it. Appreciate your help.

stalamoni
162 posts
5th
Joined
1/7/2009

Re: Support for parameterized constructors
Posted: 24 Dec 07 2:56 PM
 lakshman wrote

I see options for generating constructor for business object with all the parameters. Is it possible for customizing the constructors to take only the required fields as parameters to it. Appreciate your help.


that's a good one. Never thought about that option.
Will add to wish list. (added as ERS#4306 in our internal bug tracking system)

Options here :
  • you can off course customize the POCO by adding the code (look at the other reply to your questions about presevering custom code).
  • You could also write an extension template that will automatically write that code for you.
    • If interested we can do it together and post it as a shared example.
    • The trial version (v1.2) does not have the Template writer so it's not so easy there.

Sebastian Talamoni
GenWise Team
www.genwise.com
lakshman
18 posts
Joined
1/7/2009

Re: Support for parameterized constructors
Posted: 27 Dec 07 5:25 PM

Does the extension template would maintain the custom code as well as the constructor code?

Sure, we can do it together. I wonder how? I have only the trial version. Do I need to buy a license to do that?

 

 

  Discussions  GenWise General  Support for par...
Forum Home  Search     
 
 
Copyright 2002-2005 Genwise B.V   |  GenWise   |  Privacy Statement   |  Terms Of Use