I'm having problems adding a LinqToHql extension to NHibernate. I've
followed the code outlined by Fabio in his post:
http://fabiomaulo.blogspot.com/2010/07/nhibernate-linq-provider-extension.html
I've tried adding the LinqToHqlGeneratorsRegistry to the properties
after the NHibernateSession.Init call and if I try to add the
property
later I get an error saying that the key exists. So I guess it's
added. However, when I try using the extension method I get an
System.NotSupportedException.
protected void InitializeNHibernateSession()
{
NHibernateConfiguration = NHibernateSession.Init(
new SimpleSessionStorage(),
GetMappingAssemblies(),
GetNHibernateConfig());
NHibernateConfiguration.Properties.Add(
Environment.LinqToHqlGeneratorsRegistry,
typeof(MyLinqToHqlGeneratorsRegistry).AssemblyQualifiedName);
NHibernateSession.RegisterInterceptor(new AuditInterceptor());
}
More code in the StackOverflow question:
http://stackoverflow.com/questions/4510511/linqtohql-extension-to-nhibernate-is-not-registering-properly-getting-system-not
Anyone have any ideas on what could be wrong? The example code from
Fabio works, confirmed by several. I'm thinking it has something to
do
with S#arp Architecture.
Thanks for any help!
-Glenn
--
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.