NHibernate Linq Timeout

Posted by DarrenMcD on Stack Overflow See other posts from Stack Overflow or by DarrenMcD
Published on 2010-03-25T22:03:59Z Indexed on 2010/04/10 5:43 UTC
Read the original article Hit count: 873

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();
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about nhibernate