Way to generate a code that creates a constructor based on the current values of an object?

Posted by burak ozdogan on Stack Overflow See other posts from Stack Overflow or by burak ozdogan
Published on 2010-06-18T08:47:10Z Indexed on 2010/06/18 8:53 UTC
Read the original article Hit count: 194

Hi,

What I want to achieve is after loading my object from the database, to generate a code that will give me a block which initializes my object based on its current values so that I can use this code-block in my unit tests again and again without loading it from Db anymore.

Is there any tool around to achieve such a goal for VS?

thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio