feat: 添加webfirst 字段模块

This commit is contained in:
橙子
2023-09-19 23:48:37 +08:00
parent 36b28d83ed
commit 1d499b7052
23 changed files with 1398 additions and 1037 deletions

View File

@@ -11,7 +11,7 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
{
public class FieldEntity : IEntity<long>
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 字段名称
@@ -34,7 +34,7 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
/// <summary>
/// 是否主键
/// </summary>
public bool IsKey{ get; set; }
public bool IsKey { get; set; }
/// <summary>
/// 是否自增

View File

@@ -10,7 +10,7 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
{
public class TableEntity : IEntity<long>
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 表名
@@ -22,5 +22,10 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
/// </summary>
public string? Description { get; set; }
/// <summary>
/// 一表多字段
/// </summary>
[Navigate(NavigateType.OneToMany, nameof(FieldEntity.TableId))]
public List<FieldEntity> Fields { get; set; }
}
}

View File

@@ -12,7 +12,7 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
public class TemplateEntity : IEntity<long>
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
[SugarColumn( IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>

View File

@@ -10,7 +10,7 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
{
public class TemplateVarEntity : IEntity<long>
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
[SugarColumn( IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>