Use ISqlContext

This commit is contained in:
Stephan
2017-09-22 18:48:58 +02:00
parent ee1941b9bf
commit c1e2625de0
56 changed files with 181 additions and 190 deletions

View File

@@ -219,9 +219,9 @@ order by T.name, I.name");
return column.IsIdentity ? GetIdentityString(column) : string.Empty;
}
public override Sql<SqlContext> SelectTop(Sql<SqlContext> sql, int top)
public override Sql<ISqlContext> SelectTop(Sql<ISqlContext> sql, int top)
{
return new Sql<SqlContext>(sql.SqlContext, sql.SQL.Insert(sql.SQL.IndexOf(' '), " TOP " + top), sql.Arguments);
return new Sql<ISqlContext>(sql.SqlContext, sql.SQL.Insert(sql.SQL.IndexOf(' '), " TOP " + top), sql.Arguments);
}
private static string GetIdentityString(ColumnDefinition column)