Browse Source

Update .net core project

SqlSugar5
sunkaixuan 2 years ago
parent
commit
de93ee416c
  1. 7
      Src/Asp.NetCore2/SqlSugar/Realization/Dm/DmProvider.cs
  2. 4
      Src/Asp.NetCore2/SqlSugar/Realization/Dm/SqlBuilder/DmQueryBuilder.cs

7
Src/Asp.NetCore2/SqlSugar/Realization/Dm/DmProvider.cs

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

4
Src/Asp.NetCore2/SqlSugar/Realization/Dm/SqlBuilder/DmQueryBuilder.cs

@ -49,9 +49,9 @@ namespace SqlSugar
}
this.OrderByValue = oldOrderBy;
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;
}

Loading…
Cancel
Save