ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Schall" <mike.sch...@gmail.com>
Subject Re: SqlCommand.CommandTimeout setter or similar?
Date Fri, 18 Aug 2006 20:11:58 GMT
If connection timeout is all you want, you can also set it in the
connection string...  This works for MSSQL anyway...

  <add key="ConnectionString" value="data
source=HOMER;database=PUBS;trusted_connection=yes;connection
timeout=600" />


On 8/18/06, Gilles Bayon <ibatis.net@gmail.com> wrote:
> You have to SubClass the
> IDbCommand CreateCommand();
> method on the IDbProvider.
>
> Once the ISqlMapper is build by DomSqlMapBuilder, replace the
> IDataSource by a decorate one on which you subclass the
> CreateCommand() method on the IDbProvider implementation.
>
> --
> Cheers,
> Gilles
>
> <a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE">Wish List</a>
>

Mime
View raw message