Hi Everyone,
I am trying to upgrade from current NH 1.1 to 3.3 Version.
Could resolve all the Namespace issues and other minor issues with the new version.
However, I am stuck with the below 3 issues.
Could any of you help me out in finding the missing link. It's clear that the below 3 classes do not have the referred properties anymore. What is the alternative to this?
Appreciate any suggestion in this regard.
Thank you.
Error - 'NHibernate.Mapping.Property' does not contain a definition for 'ColumnCollection' and no extension method 'ColumnCollection' accepting a first argument of type 'NHibernate.Mapping.Property' could be found (are you missing a using directive or an assembly reference?) Code - ((NHibernate.Mapping.Column)((ArrayList)prop.ColumnCollection)[0]).Name.ToLower(); // where prop is NHibernate.Mapping.Property
Error - 'NHibernate.Mapping.IKeyValue' does not contain a definition for 'ColumnCollection' and no extension method 'ColumnCollection' accepting a first argument of type 'NHibernate.Mapping.IKeyValue' could be found (are you missing a using directive or an assembly reference?) Code - NHibernate.Mapping.Column col in pClass.Key.ColumnCollection // PersistentClass - IKeyValue
Error - 'NHibernate.NonUniqueObjectException' does not contain a definition for 'PersistentClass' and no extension method 'PersistentClass' accepting a first argument of type 'NHibernate.NonUniqueObjectException' could be found (are you missing a using directive or an assembly reference?) Code - catch (NHibernate.NonUniqueObjectException ex) { if (ex.PersistentClass.Name.ToLower() == "item"){}
|