Files
Yi.Admin/Yi.Abp.Net8/module/code-gen/Yi.Framework.CodeGen.Domain/Entities/TableAggregateRoot.cs

33 lines
887 B
C#
Raw Normal View History

2024-02-16 15:40:13 +08:00
using SqlSugar;
2024-02-18 16:34:55 +08:00
using Volo.Abp.Data;
2024-02-16 15:40:13 +08:00
using Volo.Abp.Domain.Entities;
2024-02-16 21:06:34 +08:00
namespace Yi.Framework.CodeGen.Domain.Entities
2024-02-16 15:40:13 +08:00
{
[SugarTable("YiTable")]
public class TableAggregateRoot : AggregateRoot<Guid>
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
public override Guid Id { get; protected set; }
/// <summary>
/// 表名
/// </summary>
public string Name { get; set; }
/// <summary>
/// 备注
/// </summary>
public string? Description { get; set; }
/// <summary>
/// 一表多字段
/// </summary>
[Navigate(NavigateType.OneToMany, nameof(FieldEntity.TableId))]
public List<FieldEntity> Fields { get; set; }
2024-02-18 16:34:55 +08:00
[SugarColumn(IsIgnore =true)]
public override ExtraPropertyDictionary ExtraProperties { get; protected set; }
2024-02-16 15:40:13 +08:00
}
}