数据库检索出1000多条数据,每当执行到第55条数据时,就出现以下错误,即执行到 query.List时,就卡住不动了 。
请问是怎么回事啊 ?【配置文件】
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
</configSections> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
<property name="connection.connection_string">
Server=localhost;Database=test;User ID=test;Password=123456;Connect Timeout=120
</property>
<property name="dialect">NHibernate.Dialect.MySQL5Dialect</property>
<property name="command_timeout">0</property>
<property name="show_sql">false</property> </session-factory>
</hibernate-configuration></configuration>
请问是怎么回事啊 ?【配置文件】
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
</configSections> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
<property name="connection.connection_string">
Server=localhost;Database=test;User ID=test;Password=123456;Connect Timeout=120
</property>
<property name="dialect">NHibernate.Dialect.MySQL5Dialect</property>
<property name="command_timeout">0</property>
<property name="show_sql">false</property> </session-factory>
</hibernate-configuration></configuration>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货