U4-8754 Single content queries like Get(int id) for content, media and members needs to execute a TOP 1 (or LIMIT 1)

updated a bunch of the remaining repositories to also use this pattern where applicable (repos using mappers aren't compatible without more work).
This commit is contained in:
Claus
2016-08-02 12:11:35 +02:00
parent 1ca6674095
commit 7d0c92937a
18 changed files with 37 additions and 19 deletions

View File

@@ -18,6 +18,11 @@ namespace Umbraco.Core.Persistence.SqlSyntax
}
public override Sql SelectTop(Sql sql, int top)
{
return new Sql(sql.SQL.Insert(sql.SQL.IndexOf(' '), " TOP " + top), sql.Arguments);
}
public override bool SupportsClustered()
{
return false;