protected override void InitializeParameter(DbParameter dbParam, string name, SqlType sqlType)
        {
            base.InitializeParameter(dbParam, name, AdjustSqlType(sqlType));

            AdjustDbParamTypeForLargeObjects(dbParam, sqlType);
            if (prepareSql)
            {
                SqlClientDriver.SetVariableLengthParameterSize(dbParam, sqlType);
            }
        }
        public override IDbCommand GenerateCommand(CommandType type, SqlString sqlString, SqlType[] parameterTypes)
        {
            var command = base.GenerateCommand(type, sqlString, parameterTypes);

            if (prepareSql)
            {
                SqlClientDriver.SetParameterSizes(command.Parameters, parameterTypes);
            }
            return(command);
        }