1
Je tente d'utiliser les mappages automatiques Fluent NHibernate pour la première fois. Il semble que le code que j'utilise ne génère aucun mappage. Il a été copié-collé à partir de la page wiki Auto mapping.FluentNHibernate Automatisation ne générant pas de mappages
var mappings = AutoMap
.AssemblyOf<MvcBugs.Model.Project>();
mappings.WriteMappingsTo("c:\\temp\\mappings");
var sessionFactory = Fluently.Configure()
.Mappings(m => m.AutoMappings.Add(mappings))
.Database(SQLiteConfiguration.Standard.InMemory())
.ExposeConfiguration(c => { new SchemaExport(c)
.SetOutputFile("c:\\temp\\schema.sql")
.Create(false, true); })
.BuildSessionFactory();
(quelqu'un créer une étiquette auto-mapping, je suis trop nouveau ou quelque chose)