修改了CopyTo方法,使用反射可以将列表的内容也可以复制

This commit is contained in:
2025-06-24 20:48:38 +08:00
parent 8fcd2fdf2a
commit f76e88b330
9 changed files with 230 additions and 43 deletions

16
Data/Entities/DbMenu.cs Normal file
View File

@@ -0,0 +1,16 @@
using SqlSugar;
namespace PMSWPF.Data.Entities;
[SugarTable("Menu")]
public class DbMenu
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
public string Icon { get; set; }
public string Name { get; set; }
public int ParentId { get; set; }
[SugarColumn(IsIgnore = true)]
public List<DbMenu> Items { get; set; }
}