Example #1
0
        protected override IDbTool CreateDbTool(IDbConnection dbConn)
        {
            var dbTool = new SqlTool(dbConn);

            if (CommandTimeout.HasValue)
            {
                dbTool.CommandTimeout = CommandTimeout.Value;
            }

            return(dbTool);
        }
Example #2
0
        protected override IDbTool CreateDbTool(string connStr)
        {
            var dbTool = new SqlTool(connStr);

            if (CommandTimeout.HasValue)
            {
                dbTool.CommandTimeout = CommandTimeout.Value;
            }

            return(dbTool);
        }