SysDataResourceSeedData.cs 1.6 KB

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