Browse Source

Update Sqlite bug

pull/23/head
sunkaixuan 2 years ago
parent
commit
4598d56e46
  1. 4
      Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs
  2. 4
      Src/Asp.NetCore2/SqlSugar/SqlSugarScope.cs

4
Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs

@ -247,6 +247,10 @@ namespace SqlSugar
{ {
method = isNullableType ? getConvertInt32 : getInt32; method = isNullableType ? getConvertInt32 : getInt32;
} }
else if (bindPropertyType == UtilConstants.DateTimeOffsetType)
{
method = isNullableType ? getConvertdatetimeoffset : getdatetimeoffset;
}
else if (bindPropertyType == UtilConstants.ByteType) else if (bindPropertyType == UtilConstants.ByteType)
{ {
method = isNullableType ? getConvertByte : getByte; method = isNullableType ? getConvertByte : getByte;

4
Src/Asp.NetCore2/SqlSugar/SqlSugarScope.cs

@ -775,11 +775,11 @@ namespace SqlSugar
} }
public UpdateNavTaskInit<T, T> UpdateNav<T>(T data,UpdateNavRootOptions rootOptions) where T : class, new() public UpdateNavTaskInit<T, T> UpdateNav<T>(T data,UpdateNavRootOptions rootOptions) where T : class, new()
{ {
return ScopedContext.UpdateNav(data,rootOptions); return ScopedContext.UpdateNav(data, rootOptions);
} }
public UpdateNavTaskInit<T, T> UpdateNav<T>(List<T> datas, UpdateNavRootOptions rootOptions) where T : class, new() public UpdateNavTaskInit<T, T> UpdateNav<T>(List<T> datas, UpdateNavRootOptions rootOptions) where T : class, new()
{ {
return ScopedContext.UpdateNav(datas,rootOptions); return ScopedContext.UpdateNav(datas, rootOptions);
} }
public SqlSugarClient CopyNew() public SqlSugarClient CopyNew()
{ {

Loading…
Cancel
Save