이름 |
설명 |
NHibernateSessionManager |
Handles creation and management of sessions and transactions. It is a singleton because building the initial session factory is very expensive. Inspiration for this class came from Chapter 8 of Hibernate in Action by Bauer and King. Although it is a sealed singleton you can use TypeMock (http://www.typemock.com) for more flexible testing. |
NHibernateSessionManager.Nested |
Assists with ensuring thread-safe, lazy singleton |
StringToVarCharPropertyConvention |
Ensures that all of our strings are stored as varchar instead of nvarchar. Map to varchar to substantially improve the performance of queries. |
TransactionManager |
|