Nhibernate 问题 解决 锦集

来源:互联网 发布:大话设计模式 java版 编辑:程序博客网 时间:2024/06/06 02:20

1、錯誤 1 Unable to copy file "obj\Debug\TableDefinition.dll" to "bin\Debug\TableDefinition.dll". The process cannot access the file 'bin\Debug\TableDefinition.dll' because it is being used by another process. TableDefinition

  重启动系统就OK

 2、The process cannot access the file '' because it is being used by another process. 

重启动系统就OK

 3、序列化类型“”时出错。 序列化类型“”时出错。

[Serializable] // 可序列化 表示可以从硬盘写到存储内存 也可从存储内存写到硬盘 实体类最好加上可序列化关键字

4、出现No persister for 

改为内嵌资源就可以了

5、Nhiberante 关键字不在字典中

是hql语句的问题 少了() 或者百分号 等关键字的情况


6、子页面关闭没有刷新父页面的问题

是没有套用Iframe的原因

7、数据刷不出来 死活不出来

可能是映射文件没有改成“内嵌资源”

8、a different object with the same identifier value was already associated with the

必须用ITransaction 批量提交

9、An association from the table BSN_Collection_TCoupon refers to an unmapped class: CND.SystemTableDefinition.TableDefinition.DAL.PUO_GiftCert_Inventory 
没有加持久化类

10、GetData(sq)
获取不到对象 是持久化类里面有list型的,必须要用ilist型别的

 11、onclick事件触发不到

javascript有问题

12。、无法分析从服务器收到的消息。之所以出现此错误,常见的原因是: 在通过调用 Response.Write() 修改响应时,将启用响应筛选器、HttpModule 或服务器跟踪。详细信息: 分析附近的“ataSourceTp" value="”时出错。 
<Triggers>
                                         <asp:PostBackTrigger ControlID="aggregateBtn1" />
                                        </Triggers>
                        </asp:UpdatePanel>
                    </div>

添加红色字体的那些、、、、、、就OK啦。、。。。。。在这里aggregateBtn1是我的自定义控件,相应的在你们那里是button或者什么都可以。你们使用到的。


System.InvalidCastException: 无法将类型为“System.Guid”的对象强制转换为类型“System.IConvertible"

0 0
原创粉丝点击