Update .net core project

This commit is contained in:
sunkaixuan
2022-08-08 13:01:37 +08:00
parent b0be733ee1
commit de93ee416c
2 changed files with 9 additions and 2 deletions

View File

@@ -41,6 +41,13 @@ namespace SqlSugar
return sql; return sql;
}; };
} }
public override string SqlParameterKeyWord
{
get
{
return ":";
}
}
public override IDbConnection Connection public override IDbConnection Connection
{ {
get get

View File

@@ -49,9 +49,9 @@ namespace SqlSugar
} }
this.OrderByValue = oldOrderBy; this.OrderByValue = oldOrderBy;
result = GetSqlQuerySql(result); result = GetSqlQuerySql(result);
if (result.IndexOf("-- No table") > 0) if (result.Contains("-- No table") )
{ {
return "-- No table"; return "select * from (select 1 as id) where id=0 -- No table";
} }
return result; return result;
} }