Terry's blog

Focus on bigdata and cloud.

博客园 首页 新随笔 联系 订阅 管理

2009年2月12日 #

摘要: 在执行 session.Save(cs); 时,出现could not get next sequence value[SQL: SQL not available] Nhibernate 解决办法: 把相应XML的 改为 以上我做Oracle时出现的错误,操作sqlserver的时候应该为 . 阅读全文
posted @ 2009-02-12 15:07 王晓成 阅读(1498) 评论(0) 推荐(0) 编辑

摘要: 在加载映射文件及相应的类文件的引用时 Configuration config = new Configuration(); config.AddAssembly("TestCleanSnow"); 出现如下异常: Could not compile the mapping document: TestCleanSnow.BjkptOaxtCleanupsnow... 阅读全文
posted @ 2009-02-12 14:50 王晓成 阅读(4606) 评论(2) 推荐(0) 编辑

摘要: 在 ISessionFactory factory = config.BuildSessionFactory();时发生 NHibernate.InvalidProxyTypeException: The following types may not be used as proxies: TestCleanSnow.BjkptOaxtCleanupsnow: method set_IsDele... 阅读全文
posted @ 2009-02-12 14:43 王晓成 阅读(588) 评论(0) 推荐(0) 编辑