mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-20 06:59:34 +08:00
BulkCopy DateOnley TimeOnly
This commit is contained in:
parent
f55e85d33f
commit
22c07befbb
@ -136,6 +136,14 @@ namespace SqlSugar
|
||||
value = UtilMethods.ConvertFromDateTimeOffset((DateTimeOffset)value);
|
||||
}
|
||||
}
|
||||
else if (value != null && column.UnderType?.FullName == "System.TimeOnly")
|
||||
{
|
||||
value = UtilMethods.TimeOnlyToTimeSpan(value);
|
||||
}
|
||||
else if (value != null && column.UnderType?.FullName == "System.DateOnly")
|
||||
{
|
||||
value = UtilMethods.DateOnlyToDateTime(value);
|
||||
}
|
||||
dr[name] = value;
|
||||
}
|
||||
dt.Rows.Add(dr);
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.106</version>
|
||||
<version>5.1.4.107-preview01</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user