Update sqlite dateoffsettime

This commit is contained in:
sunkaixuan
2022-10-27 13:35:13 +08:00
parent 4598d56e46
commit 1c3749c769
3 changed files with 3 additions and 3 deletions

View File

@@ -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;
} }

View File

@@ -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)

View File

@@ -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") + "'";
} }
} }
} }