Home > .NET Domain Model > CodeFluent Entities: Automatic Traces Sub-Producer

CodeFluent Entities: Automatic Traces Sub-Producer


Since fall, CodeFluent Entities ships an Automatic Trace sub-producer which can be added on top of the Business Object Model producer, and which will add traces to declared properties and methods.

To use it, right-click on your Business Object Model producer and select “Add New SubProducer”:

image

Keep everything by default and click “OK”:

image

Generate over again, and taadaa! All your .NET classes now have traces:

image

Please note that by default generated traces use the System.Diagnostics.Trace.WriteLine method, but this can be customized. For instance you could set the producer to use the System.Diagnostics.Debug.WriteLine or even your own custom method Winking smile

Isn’t life beautiful?

Carl Anderson

  1. February 21, 2012 at 1:46 am

    Vous perurioz pas nous les faire un petit peu plus grandes les photos. ;o)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s