修改了CopyTo方法,使用反射可以将列表的内容也可以复制
This commit is contained in:
16
Data/Entities/DbMenu.cs
Normal file
16
Data/Entities/DbMenu.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user