feat: 添加webfirst 字段模块
This commit is contained in:
@@ -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>
|
||||
/// 是否自增
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user