src/Shared/EntityFramework.SqlServerCompact/SqlGen/TopClause.cs
// <summary>
// Write out the TOP part of sql select statement
// It basically writes TOP (X) [WITH TIES].
// The brackets around X are ommited for Sql8.
// </summary>
Write out the TOP part of sql select statement
It basically writes TOP (X) [WITH TIES].
The brackets around X are ommited for Sql8.
Write out the TOP part of sql select statement It basically writes TOP ( X ) [ WITH TIES ] . The brackets around X are ommited for Sql8 .
public void WriteSql(SqlWriter writer, SqlGenerator sqlGenerator)
        {
            writer.Write("TOP ");
            writer.Write("(");
            TopCount.WriteSql(writer, sqlGenerator);
            writer.Write(")");
            writer.Write(" ");
            Debug.Assert(!WithTies, "WITH TIES cannot be true for Top clause");
        }
public void WriteSql ( SqlWriter writer , SqlGenerator sqlGenerator ) { writer . Write ( " " ) ; writer . Write ( " " ) ; TopCount . WriteSql ( writer , sqlGenerator ) ; writer . Write ( " " ) ; writer . Write ( " " ) ; Debug . Assert ( ! WithTies , " " ) ; }
Write out the TOP part of sql select statement
It basically writes TOP (X) [WITH TIES].
Write out the TOP part of sql select statement It basically writes TOP ( X ) [ WITH TIES ] .
writer
SqlWriter
sqlGenerator
SqlGenerator