You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
namespace DS.Module.Core.Data;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 租户实体基类
|
|
|
|
/// </summary>
|
|
|
|
public abstract class BaseTenantModel<TKey> : BaseModel<TKey>, ITenantId
|
|
|
|
{
|
|
|
|
///// <summary>
|
|
|
|
///// 主键ID
|
|
|
|
///// </summary>
|
|
|
|
//[Description("主键ID")]
|
|
|
|
//[SqlSugar.SugarColumn(IsPrimaryKey = true, Length = 100, ColumnDescription = "主键ID")]
|
|
|
|
//public TKey Id { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 租户Id
|
|
|
|
/// </summary>
|
|
|
|
[SqlSugar.SugarColumn(ColumnDescription = "租户Id", IsOnlyIgnoreUpdate = true)]
|
|
|
|
public long TenantId { get; set; } = 0;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 租户名称
|
|
|
|
/// </summary>
|
|
|
|
[SqlSugar.SugarColumn(ColumnDescription = "租户名称", IsOnlyIgnoreUpdate = true,Length = 150)]
|
|
|
|
public string TenantName { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 租户实体基类
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="TKey"></typeparam>
|
|
|
|
public abstract class BaseTenantModelV2<TKey> : BaseModelV2<TKey>, ITenantId
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 租户Id
|
|
|
|
/// </summary>
|
|
|
|
[SqlSugar.SugarColumn(ColumnDescription = "租户Id", IsOnlyIgnoreUpdate = true)]
|
|
|
|
public long TenantId { get; set; } = 0;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 租户名称
|
|
|
|
/// </summary>
|
|
|
|
[SqlSugar.SugarColumn(ColumnDescription = "租户名称", IsOnlyIgnoreUpdate = true, Length = 150)]
|
|
|
|
public string? TenantName { get; set; }
|
|
|
|
}
|