We're trying to pull off this spectaular hack, and have got as far as
foreach (var persistentClass in configuration.ClassMappings)
{
persistentClass.AddTuplizer(EntityMode.Poco, typeof(Nul开发者_高级运维lableTuplizer).AssemblyQualifiedName);
}
but have no idea where this loop should go given we're using fluent NHibernate. Any suggestions?
Fluently.Configure()
.Database(...)
.Mappings(...)
.ExposeConfiguration(config =>
{
foreach (var persistentClass in config.ClassMappings)
{
persistentClass.AddTuplizer(EntityMode.Poco, typeof(NullableTuplizer).AssemblyQualifiedName);
}
})
精彩评论