mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update sqlite dateoffsettime
This commit is contained in:
@@ -247,7 +247,7 @@ namespace SqlSugar
|
||||
{
|
||||
method = isNullableType ? getConvertInt32 : getInt32;
|
||||
}
|
||||
else if (bindPropertyType == UtilConstants.DateTimeOffsetType)
|
||||
else if (bindPropertyType == UtilConstants.DateTimeOffsetType&&SugarCompatible.IsFramework)
|
||||
{
|
||||
method = isNullableType ? getConvertdatetimeoffset : getdatetimeoffset;
|
||||
}
|
||||
|
@@ -148,7 +148,7 @@ namespace SqlSugar
|
||||
{
|
||||
date = UtilMethods.GetMinDate(this.Context.CurrentConnectionConfig);
|
||||
}
|
||||
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss.fff") + "'";
|
||||
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss.fffffff") + "'";
|
||||
}
|
||||
|
||||
private object GetDateTimeString(object value)
|
||||
|
@@ -109,7 +109,7 @@ namespace SqlSugar
|
||||
{
|
||||
date = UtilMethods.GetMinDate(this.Context.CurrentConnectionConfig);
|
||||
}
|
||||
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss.fff") + "'";
|
||||
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss.fffffff") + "'";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user