After figuring out what Sharp Architecture does and learning a bit
more about the SessionFactory (ie that it cannot be changed) the
solution was to add the properties to the NHibernateSession.Init call
var configProperties = new Dictionary<string, string> {{
Environment.LinqToHqlGeneratorsRegistry,
typeof
(ProCoSysLinqToHqlGeneratorsRegistry).AssemblyQualifiedName
}};
NHibernateConfiguration = NHibernateSession.Init(
new SimpleSessionStorage(),
GetMappingAssemblies(), null,
GetNHibernateConfig(),
configProperties, null);
I tried adding the property to the config file but got validation
errors on the file. Adding it to the .Init() call worked perfectly
though.
Any better ways of adding this config setting?
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.