尝试配置了一下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的文档。。。

 

posted on 2010-04-02 05:30  hyde  阅读(301)  评论(0编辑  收藏  举报