2

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(NullableTuplizer).AssemblyQualifiedName);
}

but have no idea where this loop should go given we're using fluent NHibernate. Any suggestions?

competent_tech
  • 44,465
  • 11
  • 90
  • 113
Chris
  • 555
  • 2
  • 9
  • 28

1 Answers1

3
Fluently.Configure()
    .Database(...)
    .Mappings(...)
    .ExposeConfiguration(config =>
    {
        foreach (var persistentClass in config.ClassMappings)
        {
            persistentClass.AddTuplizer(EntityMode.Poco, typeof(NullableTuplizer).AssemblyQualifiedName);
        }
    })
Firo
  • 30,626
  • 4
  • 55
  • 94