Skip to content

Commit dab0e09

Browse files
committed
sqlSugarCore升级到5.0.9
1 parent 0275e34 commit dab0e09

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

APIJSON.NET/APIJSONCommon/ApiJson.Common.csproj

+11-3
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,26 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Version>0.0.1</Version>
6-
<Description>通用查询组件</Description>
5+
<Version>0.0.6</Version>
6+
<Description>0.0.6 增加ToSql接口,处理sql注入的情况
7+
通用查询组件</Description>
8+
<PackageId>ApiJson.Common.Core</PackageId>
9+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
710
</PropertyGroup>
811

912
<ItemGroup>
13+
<Compile Remove="Properties\AssemblyInfo.cs" />
1014
<Compile Remove="SelectTable - 副本.cs" />
1115
</ItemGroup>
1216

1317
<ItemGroup>
1418
<PackageReference Include="AspectCore.Extensions.Reflection" Version="1.1.0" />
1519
<PackageReference Include="Microsoft.Extensions.Options" Version="2.1.1" />
16-
<PackageReference Include="sqlSugarCore" Version="4.9.9.10" />
20+
<PackageReference Include="sqlSugarCore" Version="5.0.0.9" />
21+
</ItemGroup>
22+
23+
<ItemGroup>
24+
<Folder Include="Properties\" />
1725
</ItemGroup>
1826

1927
</Project>

APIJSON.NET/APIJSONCommon/SelectTable.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ private void ProcessHaving(JObject values, ISugarQueryable<ExpandoObject> tb)
625625
hw.Add(model);
626626
}
627627

628-
var d = db.Context.Utilities.ConditionalModelToSql(hw);
628+
//var d = db.Context.Utilities.ConditionalModelToSql(hw);
629629
//tb.Having(d.Key, d.Value);
630630
tb.Having(string.Join(",", havingItems));
631631
}

0 commit comments

Comments
 (0)