SysDataResourceSeedData.cs 1.1 KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Admin.NET.Core.SeedData
  7. {
  8. /// <summary>
  9. /// 系统数据资源种子数据
  10. /// </summary>
  11. public class SysDataResourceSeedData : ISqlSugarEntitySeedData<SysDataResource>
  12. {
  13. /// <summary>
  14. /// 种子数据
  15. /// </summary>
  16. /// <returns></returns>
  17. public IEnumerable<SysDataResource> HasData()
  18. {
  19. return new[]
  20. {
  21. new SysDataResource{ Id=243848612100001, Pid=0, Name="行政区",Value="district", Code="1001", CreateTime=DateTime.Parse("2022-05-30 00:00:00"), Remark="行政区"},
  22. new SysDataResource{ Id=243848612100002, Pid=243848612100001, Name="北京市",Value="110000", Code="1001001", CreateTime=DateTime.Parse("2022-05-30 00:00:00"), Remark="北京市"},
  23. new SysDataResource{ Id=243848612100003, Pid=243848612100002, Name="东城区",Value="110101", Code="1001001001", CreateTime=DateTime.Parse("2022-05-30 00:00:00"), Remark="东城区"},
  24. };
  25. }
  26. }
  27. }