Skip to content

Commit f9d6fcb

Browse files
committed
opt code #1477
1 parent 4f921b4 commit f9d6fcb

File tree

8 files changed

+8
-1717
lines changed

8 files changed

+8
-1717
lines changed

Providers/FreeSql.Provider.Xugu/FreeSql.Provider.Xugu.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net60</TargetFrameworks>
4+
<TargetFrameworks>net70;net60;netstandard2.0</TargetFrameworks>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<Authors>FreeSql;ncc;YeXiangQin</Authors>
77
<Description>FreeSql 数据库实现,基于 虚谷数据库 Ado.Net (XuguClient.dll)</Description>
@@ -24,7 +24,11 @@
2424

2525
<ItemGroup>
2626
<None Include="../../logo.png" Pack="true" PackagePath="\" />
27-
<None Include="lib\XuguClient.dll" Pack="true" PackagePath="\lib\net60\" />
27+
<None Include="lib\XuguClient\netstandard2.0\XuguClient.dll" Pack="true" PackagePath="\lib\netstandard2.0\" />
28+
<None Include="lib\XuguClient\net45\XuguClient.dll" Pack="true" PackagePath="\lib\net45\" />
29+
<None Include="lib/**/*.dll">
30+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
31+
</None>
2832
</ItemGroup>
2933

3034
<ItemGroup>
@@ -33,7 +37,7 @@
3337

3438
<ItemGroup>
3539
<Reference Include="XuguClient">
36-
<HintPath>lib\XuguClient.dll</HintPath>
40+
<HintPath>lib\core\XuguClient.dll</HintPath>
3741
<Private>false</Private>
3842
</Reference>
3943
</ItemGroup>

Providers/FreeSql.Provider.Xugu/XuguUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public override DbParameter AppendParamter(List<DbParameter> _params, string par
9797
var tp = _orm.CodeFirst.GetDbInfo(type)?.type;
9898
if (col != null)
9999
{
100-
var dbtype = (XGDbType)_orm.DbFirst.GetDbType(new DatabaseModel.DbColumnInfo { DbTypeText = col.DbTypeText });
100+
var dbtype = (XGDbType?)_orm.DbFirst.GetDbType(new DatabaseModel.DbColumnInfo { DbTypeText = col.DbTypeText });
101101
if (dbtype != null)
102102
{
103103
if (col.DbPrecision != 0) ret.Precision = col.DbPrecision;
-99.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)