This commit is contained in:
sunkaixuan 2017-10-10 10:29:51 +08:00
parent dccd895c92
commit af7d2b1a89

View File

@ -10,12 +10,12 @@ namespace SqlSugar
{
public ExpressionContext Context
{
get;set;
get; set;
}
public Expression Expression
{
get;set;
get; set;
}
public string Name
@ -32,7 +32,7 @@ namespace SqlSugar
{
if (this.Context is SqlServerExpressionContext)
{
return 150;
return 150;
}
else
{
@ -48,7 +48,12 @@ namespace SqlSugar
{
return "TOP 1";
}
else {
else if (this.Context is OracleExpressionContext)
{
return "ROWNUM=1";
}
else
{
return "limit 0,1";
}
}