, ,
, . .
, . .
ISessionFactory session = Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory())
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<MessagingDescriptorMap>())
.ExposeConfiguration(c =>
{
config = c;
})
.BuildSessionFactory();
, OpenSession(), SchemaExport.Execute
ISession session = GetSessionFactory().OpenSession();
new SchemaExport(config).Execute(true, true, false, session.Connection, null);
, - , .
NHibernate 2.1.2, Fluent NHibernate 1.1 .Net 3.5