Synchronization code

This commit is contained in:
sunkaixuan
2023-12-25 19:00:44 +08:00
parent 40e90050ef
commit 732e3dea91
2 changed files with 5 additions and 1 deletions

View File

@@ -74,6 +74,10 @@ namespace SqlSugar
{
return db.GetDate();
}
else if (value is DateTimeOffset)
{
return ((DateTimeOffset)value).DateTime;
}
else if (UtilMethods.GetUnderType(value.GetType()) != UtilConstants.DateType)
{
throw new Exception($"DateSplitTableService Split column {splitColumn.PropertyName} not DateTime " + splitType.ToString());

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.129</version>
<version>5.1.4.130-preview02</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>