Beispiel #1
0
        void ISqlFormattable.AppendTo(SqlStringBuilder builder)
        {
            builder.Append(Name);
            builder.Append(" ");
            ParameterType.AppendTo(builder);

            if (Direction != SqlParameterDirection.In)
            {
                builder.Append(" ");

                if (IsInput)
                {
                    builder.Append("INPUT");
                }
                if (IsInput && IsOutput)
                {
                    builder.Append(" ");
                }
                if (IsOutput)
                {
                    builder.Append("OUTPUT");
                }
            }

            if (HasDefaultValue)
            {
                builder.Append(" := ");
                DefaultValue.AppendTo(builder);
            }
        }
 void ISqlFormattable.AppendTo(SqlStringBuilder builder)
 {
     builder.Append(ParameterName);
     builder.Append(" ");
     ParameterType.AppendTo(builder);
 }