feat: 添加代码生成器模块
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Domain.Entities;
|
||||
|
||||
namespace Yi.Framework.CodeGun.Domain.Entities
|
||||
{
|
||||
[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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user