コード例 #1
0
 public void Render(SqlTextWriter writer, SqlBuildArguments args)
 {
     writer.WriteLiteralValue(this.Value);
     if (this.Alias != null)
     {
         writer.WriteSpace();
         writer.Write(SqlConstants.AS);
         writer.WriteSpace();
         writer.WriteColumnName(this.Alias);
     }
 }
コード例 #2
0
        void ISqlStatementElement.Render(SqlTextWriter writer, SqlBuildArguments args)
        {
            writer.WriteBeginGroup();
            writer.WriteColumnName(this.ColumnName, args.TableName(this.Table));
            writer.WriteOperator(this.Operator);

            if (this.EncodeValueAsLiteral)
            {
                writer.WriteLiteralValue(this.Value);
            }
            else
            {
                writer.WriteParameter(args.CreateParameter(this.Value, this.DataType));
            }

            writer.WriteEndGroup();
        }
コード例 #3
0
 public void RenderValueExpression(SqlTextWriter writer, SqlBuildArguments args)
 {
     writer.WriteLiteralValue(this.Value);
 }