mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 02:51:58 +08:00
Update sqlite dateoffsettime
This commit is contained in:
@@ -247,7 +247,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
method = isNullableType ? getConvertInt32 : getInt32;
|
method = isNullableType ? getConvertInt32 : getInt32;
|
||||||
}
|
}
|
||||||
else if (bindPropertyType == UtilConstants.DateTimeOffsetType)
|
else if (bindPropertyType == UtilConstants.DateTimeOffsetType&&SugarCompatible.IsFramework)
|
||||||
{
|
{
|
||||||
method = isNullableType ? getConvertdatetimeoffset : getdatetimeoffset;
|
method = isNullableType ? getConvertdatetimeoffset : getdatetimeoffset;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
date = UtilMethods.GetMinDate(this.Context.CurrentConnectionConfig);
|
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)
|
private object GetDateTimeString(object value)
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
date = UtilMethods.GetMinDate(this.Context.CurrentConnectionConfig);
|
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