尝试配置了一下ActiveRecord[NHibernate2.0]。差点就放弃了。

总是报

 

 

代码
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)

 

 

搞了2个小时。以为是Validator错误。一直改。。。

最后发现。是Config文件的配置多写了hibernate。。。。

 

nhibernate.connection.provider
nhibernate.dialect
nhibernate.connection.connection_string
之前的nhibernate在2.0版本里都要去掉。

相当的无语。杯具啊。浪费生命啊。

 

再次b4 castle的文档。。。

 

相关文章:

  • 2021-08-20
  • 2022-12-23
  • 2018-08-26
  • 2021-09-08
  • 2021-08-04
  • 2021-06-24
猜你喜欢
  • 2021-08-14
  • 2021-12-04
  • 2022-12-23
  • 2021-09-08
  • 2021-11-05
  • 2021-10-09
  • 2022-12-23
相关资源
相似解决方案