Configuration

NBuilder allows you to change its default behaviour using the BuilderSetup class.

Specifying a custom persistence service

You can completely replace the default persistence service with your own. All you need to do is inherit from IPersistenceService and specify it using BuilderSetup.SetPersistenceService()

Specifying a custom property namer

You can specify a different property namer. Out of the box the ones available are the default SequentialPropertyNamer and the RandomValuePropertyNamer

Setting a property namer for a specific type

If you need to override the property naming for a particular type you can use the SetPropertyNamerFor<T> method.

Disabling property naming for an individual property

You can switch off property naming using the DisablePropertyNamingFor() method