Synchronization code

This commit is contained in:
sunkaixuan
2023-03-05 21:52:17 +08:00
parent 6ae9b427c5
commit 791952b31b
4 changed files with 8 additions and 3 deletions

View File

@@ -278,5 +278,6 @@ namespace SqlSugar
public string TypeName { get; set; }
public bool IsJson { get; set; }
public bool IsArray { get; set; }
public object CustomDbType { get; set; }
}
}

View File

@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.1.3.54")]
[assembly: AssemblyFileVersion("5.1.3.54")]
[assembly: AssemblyVersion("5.1.3.55")]
[assembly: AssemblyFileVersion("5.1.3.55")]

View File

@@ -165,6 +165,10 @@ namespace SqlSugar
sqlParameter.DbType = System.Data.DbType.DateTime;
}
++index;
if (parameter.CustomDbType != null&& parameter.CustomDbType is NpgsqlDbType)
{
sqlParameter.NpgsqlDbType =((NpgsqlDbType)parameter.CustomDbType);
}
}
return result;
}

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugar</id>
<version>5.1.3.54</version>
<version>5.1.3.55</version>
<title>.Net Framework 安装此版本, 5.0.3.3-max 最低要求 .Net Framework 4.6 | 5.0.0.2-5.0.3.2 最低要求 .Net Framework 4.5 | 4.0-4.9.11 最低要求 .Net Framework 4.0+ .NET ORM </title>
<authors>sun kaixuan</authors>
<owners>landa</owners>