Skip to content

Instantly share code, notes, and snippets.

@samdelagarza
Created March 25, 2010 12:49
Show Gist options
  • Save samdelagarza/343516 to your computer and use it in GitHub Desktop.
Save samdelagarza/343516 to your computer and use it in GitHub Desktop.
_sessionFactory =
Fluently.Configure()
.Database(SQLiteConfiguration.Standard.ShowSql().InMemory())
.Mappings(m => m.FluentMappings.AddFromAssembly(assemblyContainingMapping))
.ExposeConfiguration(cfg => new SchemaExport(cfg).Execute(true, true, false))
.BuildSessionFactory();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment