diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs index 2a66aafd8..315b143f4 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs @@ -247,6 +247,10 @@ namespace SqlSugar { method = isNullableType ? getConvertInt32 : getInt32; } + else if (bindPropertyType == UtilConstants.DateTimeOffsetType) + { + method = isNullableType ? getConvertdatetimeoffset : getdatetimeoffset; + } else if (bindPropertyType == UtilConstants.ByteType) { method = isNullableType ? getConvertByte : getByte; diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarScope.cs b/Src/Asp.NetCore2/SqlSugar/SqlSugarScope.cs index 8375e67f4..9291acc11 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarScope.cs +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugarScope.cs @@ -775,11 +775,11 @@ namespace SqlSugar } public UpdateNavTaskInit UpdateNav(T data,UpdateNavRootOptions rootOptions) where T : class, new() { - return ScopedContext.UpdateNav(data,rootOptions); + return ScopedContext.UpdateNav(data, rootOptions); } public UpdateNavTaskInit UpdateNav(List datas, UpdateNavRootOptions rootOptions) where T : class, new() { - return ScopedContext.UpdateNav(datas,rootOptions); + return ScopedContext.UpdateNav(datas, rootOptions); } public SqlSugarClient CopyNew() {