In this chapter, we will cover the following topics:
Creating an encrypted string type
Using well-known instance types
Using dependency injection with entities
Creating an audit-event listener
Creating and changing stamping entities
Generating trigger-based auditing
Setting Microsoft SQL's CONTEXT_INFO
Using dynamic connection strings
Introduction
NHibernate is incredibly extensible. The recipes in this chapter demonstrate ways to extend NHibernate to accomplish common tasks such as data encryption and auditing.