尝试配置了一下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 阅读(58) 评论(0) 编辑 收藏

公告

昵称:hyde
园龄:6年2个月
粉丝:1
关注:0
<2010年4月>
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

搜索

 
 

常用链接

我的标签

随笔分类

随笔档案

文章分类

Friends

LwTools

最新评论

阅读排行榜

评论排行榜

推荐排行榜