XT.Common
1.1.6
dotnet add package XT.Common --version 1.1.6
NuGet\Install-Package XT.Common -Version 1.1.6
<PackageReference Include="XT.Common" Version="1.1.6" />
paket add XT.Common --version 1.1.6
#r "nuget: XT.Common, 1.1.6"
// Install XT.Common as a Cake Addin #addin nuget:?package=XT.Common&version=1.1.6 // Install XT.Common as a Cake Tool #tool nuget:?package=XT.Common&version=1.1.6
XT.Common
1、介绍
通用程序集,只能添加通用的方法,不要引入第三方pack。
// nuget删除包
dotnet nuget delete XT.Common 1.0.7 -k oy2ox -s https://api.nuget.org/v3/index.json
// nuget推送包
dotnet nuget push XT.Common.1.0.7.nupkg -k oy2oxt -s https://api.nuget.org/v3/index.json
2、功能
2.1、AppSettings配置
- new()初始化,GetObjData<T>()获取对象配置
2.2、特性
- Page,页面特性,Blazor自动生成页面菜单,用法 用法:Page("/ecs/floor1", "一楼", "mdi-home-floor-1", true)
- Order,排序特性,用于属性排序
2.3、雪花id生成器
- 初始化 new IdHelperBootstrapper().SetWorkderId(1).Boot();
- IdHelper.getId()
2.4、Utils工具
- ComputerUtil 获取计算机内存cpu等信息。
- DateTimeUtil 获取星期几等
2.5、Serivce辅助
- ApiConfigService 使用要求: AddOriginHttpClient注册http服务
- TimerService 封装定时器
2.6、枚举
- Sql 分类
2.7、Extension扩展方法
- Action 封装try catch,Get|Post HttpData,AddServiceInjects注入服务。
- Byte byte[] 转 ushort[],SetBit设置某个偏移位置的BIT值
- Enumerable 集合操作
- Enum 枚举操作
- Sql sql模板替换
- Type 反射
- Xml xml操作
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Mapster (>= 7.3.0)
- Microsoft.AspNetCore.SignalR.Client (>= 6.0.7)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 6.0.0)
- Microsoft.Extensions.Configuration.Json (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Net.Http.Json (>= 6.0.1)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on XT.Common:
Package | Downloads |
---|---|
XT.Sql
1、使用前需要添加配置,配置对象为 XTDbConfig (支持多库切换) 2、使用时要初始化 , Services.AddSingleton(new AppSettings(builder.Environment.IsDevelopment())); Services.AddXTDbSetup(); 3、使用方式 - 注入XTDbContext,通过SimpleClient来进行操作 - 继承ISugarHandler public interface IPatCellRepository: ISugarHandler<PatCell>, IDependencyRepository { } - 继承SugarHandler public class PatCellRepository : SugarHandler<PatCell>, IPatCellRepository { public PatCellRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { } } 4、数据库连接串 Oracle: DATA SOURCE=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.1)(PORT=21)))(CONNECT_DATA=(SERVICE_NAME=XX)));USER ID=XX;Password=XX PostgreSql: Host=192.168.0.1 Port=20; Database=XX; Username=XX; Password=XX; Sqlite DataSource=./test.db |
|
TZ.ViewDataServices
Package Description |
|
IotContract
Package Description |
|
EVE.ECS_Model
Model for System |
|
AvaloniaXT
Avalonia App Page Helper Dll , Contains MainWindow,SukiUI,Support AOT |
GitHub repositories
This package is not used by any popular GitHub repositories.