sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/Utils/SqlQueryFormatter.cs
/// <summary>
/// Visitor for a conversion node.
/// </summary>
/// <param name="node">The incoming node.</param>
/// <returns>The processed node.</returns>
Visitor for a conversion node.
Visitor for a conversion node .
public override QueryNode Visit(ConvertNode node)
        {
            sql.Append("CAST(");
            QueryNode source = node.Source.Accept(this);
            sql.Append(" AS ").Append(SqlColumnType.GetStoreCastType(node.TargetType)).Append(')');
            return (source != node.Source) ? new ConvertNode(source, node.TargetType) : node;
        }
public override QueryNode Visit ( ConvertNode node ) { sql . Append ( " " ) ; QueryNode source = node . Source . Accept ( this ) ; sql . Append ( " " ) . Append ( SqlColumnType . GetStoreCastType ( node . TargetType ) ) . Append ( ' ' ) ; return ( source != node . Source ) ? new ConvertNode ( source , node . TargetType ) : node ; }
Visitor for a conversion node.
Visitor for a conversion node .
The processed node.
The processed node .
node
ConvertNode
The incoming node.
The incoming node .