Created
August 28, 2010 11:45
-
-
Save kmckelvin/555046 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static ISessionFactory SessionFactory = CreateSessionFactory(); | |
| private static ISessionFactory CreateSessionFactory() | |
| { | |
| var config = new Configuration(); | |
| config.DataBaseIntegration( | |
| db => | |
| { | |
| db.ConnectionStringName = "MusicStoreConnection", | |
| db.Dialect<MsSql2005Dialect>(); | |
| }) | |
| .Proxy(p => p.ProxyFactoryFactory<ProxyFactoryFactory>()) | |
| .AddAssembly(typeof (Album).Assembly); | |
| return config.BuildSessionFactory(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment