O'Reilly logo

Mastering NServiceBus and Persistence by Rich Helton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using saga and NHibernate

We will walk through a modified example of a basic saga, originally from https://github.com/jkillingsworth/NServiceBus-BasicSagas. However, this example has been modified to use NHibernate, which uses a local SQL Express database. NHibernate was added using some of the steps from http://docs.particular.net/nservicebus/relational-persistence-using-nhibernate. We also added logging using the NLog framework to log the functionality as we go. The NHibernate ORM framework was chosen because it can connect to a multitude of different databases using the same code, the difference being to the different databases is the connection string in the app.config file.

To elaborate on this Saga example, there is a MySaga program that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required