Last active
December 11, 2015 03:19
-
-
Save jand187/4537031 to your computer and use it in GitHub Desktop.
Basic setup for Fluent NHibernate SQLite.InMemory
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
var sessionFactory = Fluently.Configure() | |
.Database(SQLiteConfiguration.Standard.InMemory()) | |
.ShowSql()) | |
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<AdjecentType>()) | |
.ExposeConfiguration(cfg => | |
{ | |
var schemaExport = new SchemaExport(cfg); | |
schemaExport.Execute(true, true, false); | |
}) | |
.BuildSessionFactory(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment