Database Reference
In-Depth Information
Defining NHibernate
NHibernate is configured in the app.config file for the MySaga project to configure
the NHibernate interface to connect to the local SQL Express Server instance.
Here, we can see the NServiceBus NHibernate connection strings and its app settings. Now
that we have NHibernate configured for NServiceBus, we can check SQL Server after we
start the sample solution. Once we start the solution, NServiceBus will create the appropri-
ate tables for saga and timeouts in the nservicebus database.
We see the base saga that is normally created called ContainSagaData , which has Id ,
Originator , and OriginalMessageId , to always be able to find the correct unique
saga instance; it also has the originator information to reply to the client that sent this hand-
ler the message to start the saga.
It also created the PurchaseOrderRequestData saga where the table will match the
object. The object will appear as follows:
Search WWH ::




Custom Search