mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Synchronization code
This commit is contained in:
@@ -136,8 +136,11 @@ namespace SqlSugar
|
|||||||
if (isTime)
|
if (isTime)
|
||||||
{
|
{
|
||||||
sqlParameter.SqlDbType = SqlDbType.Time;
|
sqlParameter.SqlDbType = SqlDbType.Time;
|
||||||
|
if (sqlParameter.Value != DBNull.Value)
|
||||||
|
{
|
||||||
sqlParameter.Value = DateTime.Parse(parameter.Value?.ToString()).TimeOfDay;
|
sqlParameter.Value = DateTime.Parse(parameter.Value?.ToString()).TimeOfDay;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (parameter.Value != null && parameter.Value is XElement)
|
else if (parameter.Value != null && parameter.Value is XElement)
|
||||||
{
|
{
|
||||||
sqlParameter.SqlDbType = SqlDbType.Xml;
|
sqlParameter.SqlDbType = SqlDbType.Xml;
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.83</version>
|
<version>5.1.4.84-preview02</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
Reference in New Issue
Block a user