XH.LAB.UTILS 1.0.11

There is a newer version of this package available.
See the version list below for details.
dotnet add package XH.LAB.UTILS --version 1.0.11
NuGet\Install-Package XH.LAB.UTILS -Version 1.0.11
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XH.LAB.UTILS" Version="1.0.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XH.LAB.UTILS --version 1.0.11
#r "nuget: XH.LAB.UTILS, 1.0.11"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XH.LAB.UTILS as a Cake Addin
#addin nuget:?package=XH.LAB.UTILS&version=1.0.11

// Install XH.LAB.UTILS as a Cake Tool
#tool nuget:?package=XH.LAB.UTILS&version=1.0.11

XH.LAB.UTILS

介绍

XH.LAB通用方法库

  • PathCombine方法优化,兼容了原来系统的Path Combine因为第二个参数前有/导致无法正常拼接路径的问题

  • 引用公共组件后,业务代码需做一下相应修改:

  • 1、AutofacModuleRegister类增加一下代码,注册依赖注入

    //文件上传 builder.RegisterType<UploadFileService>().As<IUploadFileService>().InstancePerLifetimeScope() .EnableInterfaceInterceptors()//启用拦截器 .InterceptedBy(interceptType.ToArray());

    //权限服务 builder.RegisterType<AuthorityService>().As<IAuthorityService>().InstancePerLifetimeScope() .EnableInterfaceInterceptors()//启用拦截器 .InterceptedBy(interceptType.ToArray());

  • 2、SugarDbContext_Base类更改为继承父类

    public class SugarDbContext_Base : SugarUnitOfWork   
    
    更改为:
    
    public class SugarDbContext_Base : SugarDbContext_Base_Utils
    
  • 3、删除或修改本地重名模型

  • 4、更新引用

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.32 88 5/7/2024
1.0.31 93 5/7/2024
1.0.30 80 4/28/2024
1.0.29 86 4/28/2024
1.0.28 88 4/26/2024
1.0.27 82 4/26/2024
1.0.26 78 4/25/2024
1.0.25 92 4/16/2024
1.0.24 76 4/16/2024
1.0.23 70 4/15/2024
1.0.22 63 4/15/2024
1.0.21 74 4/10/2024
1.0.20 84 4/8/2024
1.0.19 96 4/3/2024
1.0.18 91 3/31/2024
1.0.17 84 3/27/2024
1.0.16 74 3/26/2024
1.0.15 95 3/20/2024
1.0.14 102 3/20/2024
1.0.13 92 3/18/2024
1.0.12 90 3/18/2024
1.0.11 100 3/14/2024
1.0.10 94 3/14/2024
1.0.9 97 3/14/2024
1.0.8 106 3/14/2024
1.0.7 87 3/14/2024
1.0.6 88 2/28/2024
1.0.5 86 2/22/2024
1.0.4 79 2/19/2024
1.0.3 86 2/18/2024
1.0.2 83 2/6/2024
1.0.1 82 1/29/2024

增加路径拼接方法