Files
KinginfoGateway/src/Gateway/ThingsGateway.Gateway.Application/Plugin/CacheDB/CacheDBItem.cs

35 lines
1.0 KiB
C#
Raw Normal View History

//------------------------------------------------------------------------------
2024-04-03 19:01:57 +08:00
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权除特别声明外的代码归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
// Gitee源代码仓库https://gitee.com/diego2098/ThingsGateway
// Github源代码仓库https://github.com/kimdiego2098/ThingsGateway
2024-09-14 18:17:25 +08:00
// 使用文档https://thingsgateway.cn/
2024-04-03 19:01:57 +08:00
// QQ群605534569
//------------------------------------------------------------------------------
2024-07-13 22:22:53 +08:00
using SqlSugar;
2024-04-03 19:01:57 +08:00
using Yitter.IdGenerator;
2024-04-25 15:39:00 +08:00
namespace ThingsGateway.Gateway.Application;
2024-04-03 19:01:57 +08:00
2024-07-13 22:22:53 +08:00
[SugarTable("CacheDBItem")]
2024-04-14 22:51:56 +08:00
public class CacheDBItem<T> : IPrimaryIdEntity
2024-04-03 19:01:57 +08:00
{
2024-04-14 22:51:56 +08:00
public CacheDBItem()
2024-04-03 19:01:57 +08:00
{
}
2024-04-14 22:51:56 +08:00
public CacheDBItem(T value)
2024-04-03 19:01:57 +08:00
{
2024-04-14 22:51:56 +08:00
Value = value;
2024-04-03 19:01:57 +08:00
}
2024-07-13 22:22:53 +08:00
[SugarColumn(IsPrimaryKey = true)]
2024-04-03 19:01:57 +08:00
public long Id { get; set; }
2024-07-13 22:22:53 +08:00
[SugarColumn(IsJson = true)]
2024-04-14 22:51:56 +08:00
public T Value { get; set; }
2024-04-21 00:06:32 +08:00
}