mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
The field of the split-table supports DateoffsetTime
This commit is contained in:
parent
566b3a71b5
commit
a20833db5e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user