63 lines
1.7 KiB
C#
Raw Normal View History

2025-05-27 16:16:07 +08:00
using FreeSql.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.Guids;
namespace JiShe.IoT.Domain.Shared
{
/// <summary>
/// jishe基础实体
/// </summary>
public class BasicEntiy<TKey> : FullAuditedAggregateRoot<TKey>, IBasicEntiy<TKey>, IMultiTenant
{
/// <summary>
/// 租户Id
/// </summary>
[Comment("租户ID")]
public Guid? TenantId { get; set; }
/// <summary>
/// 备注
/// </summary>
[Comment("备注")]
public string Remark { get; set; }
/// <summary>
/// 旧系统授权创建者Id
/// </summary>
[Comment("旧系统授权创建者Id")]
public int? OSACreatorId { get; set; }
/// <summary>
/// 旧系统授权最后修改者Id
/// </summary>
[Comment("旧系统授权最后修改者Id")]
public int? OSALastModifierId { get; set; }
/// <summary>
/// 旧系统授权最后删除者Id
/// </summary>
[Comment("旧系统授权最后删除者Id")]
public int? OSADeleterId { get; set; }
/// <summary>
/// 扩展属性,用于存储自定义字段,JSON格式
/// </summary>
[Comment("扩展属性,用于存储自定义字段,JSON格式")]
[JsonMap, Column(DbType = "jsonb")]
2025-05-27 16:16:07 +08:00
public new ExtraPropertyDictionary ExtraProperties { get; set; } = new ExtraPropertyDictionary();
public void CreateId(TKey Id)
{
base.Id = Id;
}
}
}