Skip to content

Commit

Permalink
Update NuGet Package && fix SqlSugar exception 💯
Browse files Browse the repository at this point in the history
  • Loading branch information
anjoy8 committed May 27, 2019
1 parent d8e9f54 commit 290a24e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Blog.Core.Common/Blog.Core.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="StackExchange.Redis" Version="2.0.519" />
<PackageReference Include="StackExchange.Redis" Version="2.0.601" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Blog.Core.Model/Blog.Core.Model.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="sqlSugarCore" Version="4.9.8.1" />
<PackageReference Include="sqlSugarCore" Version="5.0.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Blog.Core.Repository/BASE/BaseRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ public async Task<PageModel<TEntity>> QueryPage(Expression<Func<TEntity, bool>>
.WhereIF(whereExpression != null, whereExpression)
.ToPageListAsync(intPageIndex, intPageSize, totalCount);

int pageCount = (Math.Ceiling(list.Value.ObjToDecimal() / intPageSize.ObjToDecimal())).ObjToInt();
return new PageModel<TEntity>() { dataCount = list.Value, pageCount = pageCount, page = intPageIndex, PageSize = intPageSize, data = list.Key };
int pageCount = (Math.Ceiling(list.Count.ObjToDecimal() / intPageSize.ObjToDecimal())).ObjToInt();
return new PageModel<TEntity>() { dataCount = list.Count, pageCount = pageCount, page = intPageIndex, PageSize = intPageSize, data = list };
}

}
Expand Down
2 changes: 1 addition & 1 deletion Blog.Core.Repository/Blog.Core.Repository.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.0.138" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.0.165" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Blog.Core.Services/Blog.Core.Services.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="8.0.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />
<PackageReference Include="AutoMapper" Version="8.1.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions Blog.Core/Blog.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.3.1" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.4.0" />
<PackageReference Include="Autofac.Extras.DynamicProxy" Version="4.5.0" />
<PackageReference Include="AutoMapper" Version="8.0.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />
<PackageReference Include="AutoMapper" Version="8.1.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.1.0" />
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" />
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.0" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.0.138" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.0.165" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" />
</ItemGroup>

Expand Down
3 changes: 2 additions & 1 deletion Blog.Core/Blog.Core.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 290a24e

Please sign in to comment.