Hello,

This is from a Fluent perspective, but I've got a potential bug going
on in the SimpleValue.Type property.

Experiencing the following exception:

FluentNHibernate.Cfg.FluentConfigurationException occurred
  HResult=-2146233088
  Message=An invalid or incomplete configuration was used while
creating a SessionFactory. Check PotentialReasons collection, and
InnerException for more detail.


  Source=FluentNHibernate
  StackTrace:
       at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
       at 
Football.Data.Repository.Hibernate.NHibernateSessionFactoryManagerBase.CreateFactory()
in <Path/>\NHibernateSessionFactoryManagerBase.cs:line 131
  InnerException: NHibernate.MappingException
       HResult=-2146232832
       Message=Could not determine type for:
Football.Models.Enumerations.StatisticFlags, Football,
Version=1.1.0.26612, Culture=neutral, PublicKeyToken=null, for
columns: NHibernate.Mapping.Column(Unit)
       Source=NHibernate
       StackTrace:
            at NHibernate.Mapping.SimpleValue.get_Type()
            at NHibernate.Mapping.SimpleValue.IsValid(IMapping mapping)
            at NHibernate.Mapping.Property.IsValid(IMapping mapping)
            at NHibernate.Mapping.PersistentClass.Validate(IMapping mapping)
            at NHibernate.Mapping.RootClass.Validate(IMapping mapping)
            at NHibernate.Cfg.Configuration.ValidateEntities()
            at NHibernate.Cfg.Configuration.Validate()
            at NHibernate.Cfg.Configuration.BuildSessionFactory()
            at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
       InnerException:

For which I've basically got an IUserType implemented within a
ComponentMap, via a SubclassMap.

The same IUserType works just fine from an "ordinary" ClassMap.

The IUserType is currently mapping to Binary(n). I may want to map it
to a User Defined Data Type called [ENUMERATIONFLAGS], which is
ultimately [VARBINARY](32).

Which has me wondering about the heuristic model for Type.

Any hints would be greatly appreciated.

Thank you...

Best regards,

Michael Powell

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to