I believe I have found a problem with NHibernate.Loader.GenerateAlias when used to generate an alias for a constructed Generic class. The Type.FullName for a constructed Generic class looks like this:
Namespace1.Namspace12.Namespace123.GenericClassName`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
GenerataAlias generates the alias "0, culture" for this class name, obviously not a valid SQL alias.
I would like to fix this by truncating the "`" (grave accent) and everything following, then proceeding to process the type name string as it is currently processed.
Comments?
|