Пример #1
0
        protected override IDbTool CreateDbTool(IDbConnection dbConn)
        {
            var dbTool = new SqlTool(dbConn);

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

            return(dbTool);
        }
Пример #2
0
        protected override IDbTool CreateDbTool(string connStr)
        {
            var dbTool = new SqlTool(connStr);

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

            return(dbTool);
        }