How do I increase the timeout in NHibernate Linq To Sql?
Not the Connection Timeout but the ado command timeout.
using (ISession session = NHibernateHelper.OpenSession(NHibernateHelper.Databases.CarrierCDR))
using (session.BeginTransaction(IsolationLevel.ReadUncommitted))
{
lCdrs = (from verizon in session.Linq<Domain.Verizon>()
where verizon.Research == true
&& verizon.ReferenceTable == null
orderby verizon.CallBillingDate descending
select verizon).ToList();
}
The only mention of a command timeout parameter in all of fluent nhibernate's source code is in a
FirebirdConfigurationobject. Which configures the application for the firebird database, which you are probably not using. I would suggest playing with your configuration objects, and consulting your database's connection string reference.The
Rawfunction in thePersistenceConfigurationmay allow you to access the properties you are looking for, likeFirebirdConfiguration, you could add the lineRaw("command_timeout", "444");, to where your configure nhibernate.