尝试配置了一下ActiveRecord[NHibernate2.0]。差点就放弃了。
总是报
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
ERROR NHibernate.Cfg.Configuration [(null)] - Could not compile the mapping document: (string)
NHibernate.MappingException: Could not compile the mapping document: (string) ---> System.InvalidOperationException: Could not find the dialect in the configuration
在 NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props)
在 NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
NHibernate.MappingException: Could not compile the mapping document: (string) ---> System.InvalidOperationException: Could not find the dialect in the configuration
在 NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props)
在 NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
搞了2个小时。以为是Validator错误。一直改。。。
最后发现。是Config文件的配置多写了hibernate。。。。
nhibernate.connection.provider
nhibernate.dialect
nhibernate.connection.connection_string
之前的nhibernate在2.0版本里都要去掉。
相当的无语。杯具啊。浪费生命啊。
再次b4 castle的文档。。。