I have no idea where this is coming from. I can successfully create the
whole database with:
_sessionFactory = Fluently.Configure()
.Database(SQLiteConfiguration.Standard.UsingFile(PathToSqlLiteDb))
.Mappings(m => m.FluentMappings
.Add<ClubMap>()
.Add<ContactMap>()
.Add<ContactTypeMap>()
.Add<NewsMap>()
.Add<ResultMap>()
.Add<ResultTypeMap>()
.Add<ScheduleMap>()
.Add<TournamentMap>()
.Add<TournamentTypeMap>()
.ExportTo("D:\\"))
.ExposeConfiguration(BuildSchema)
.BuildConfiguration()
.BuildSessionFactory();
_session = _sessionFactory.OpenSession();
Then after I have built the schema i goes to BuildSessionFactory and then I
get an exception:
System.Collections.Generic.KeyNotFoundException: The given key was not
present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at NHibernate.Cfg.Configuration.Mapping.GetPersistentClass(String className)
at NHibernate.Cfg.Configuration.Mapping.GetIdentifierType(String className)
at NHibernate.Type.EntityType.GetIdentifierType(IMapping factory)
at NHibernate.Type.EntityType.GetIdentifierOrUniqueKeyType(IMapping factory)
at NHibernate.Persister.Entity.AbstractPropertyMapping
.InitIdentifierPropertyPaths(String path, EntityType etype, String[] columns
, IMapping factory)
at NHibernate.Persister.Entity.AbstractPropertyMapping.InitPropertyPaths(
String path, IType type, String[] columns, String[] formulaTemplates,
IMapping factory)
at NHibernate.Persister.Entity.AbstractEntityPersister
.InitOrdinaryPropertyPaths(IMapping mapping)
at NHibernate.Persister.Entity.AbstractEntityPersister.InitPropertyPaths(
IMapping mapping)
at NHibernate.Persister.Entity.SingleTableEntityPersister..ctor(
PersistentClass persistentClass, ICacheConcurrencyStrategy cache,
ISessionFactoryImplementor factory, IMapping mapping)
at NHibernate.Persister.PersisterFactory.CreateClassPersister(
PersistentClass model, ICacheConcurrencyStrategy cache,
ISessionFactoryImplementor factory, IMapping cfg)
at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping
mapping, Settings settings, EventListeners listeners)
at NHibernate.Cfg.Configuration.BuildSessionFactory()
That is by far the most retarded debug message I have ever seen :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---