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); } }
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(); }
public void RenderValueExpression(SqlTextWriter writer, SqlBuildArguments args) { writer.WriteLiteralValue(this.Value); }