XT.Common 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package XT.Common --version 1.1.0                
NuGet\Install-Package XT.Common -Version 1.1.0                
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="XT.Common" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XT.Common --version 1.1.0                
#r "nuget: XT.Common, 1.1.0"                
#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 XT.Common as a Cake Addin
#addin nuget:?package=XT.Common&version=1.1.0

// Install XT.Common as a Cake Tool
#tool nuget:?package=XT.Common&version=1.1.0                

XT.Common

1、介绍

通用程序集,只能添加通用的方法,不要引入第三方pack。

 // nuget删除包
 dotnet nuget delete GeneralCommon 1.0.7 -k oy2xxx -s https://api.nuget.org/v3/index.json

 // nuget推送包
dotnet nuget push GeneralCommon.1.0.7.nupkg -k oy2oxx -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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

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

使用.net8平台开发的一个针对ECS调度大屏的数据服务,包含获取视图和点位信息的API接口服务和实现数据轮询刷新的MQTT服务,支持AOT模式。

EVE.ECS_Model

Model for System

IotContract

Package Description

XT.FeSql

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.6 203 4/15/2024
1.1.5 112 3/8/2024
1.1.4 252 12/19/2023
1.1.3 111 12/19/2023
1.1.2 256 12/19/2023
1.1.1 142 11/28/2023
1.1.0 236 11/21/2023