SysOrgSeedData.cs 860 B

1234567891011121314151617181920
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace YBEE.EQM.Core.SeedData;
  6. /// <summary>
  7. /// 机构种子数据
  8. /// </summary>
  9. public class SysOrgSeedData : IEntitySeedData<SysOrg>
  10. {
  11. public IEnumerable<SysOrg> HasData(DbContext dbContext, Type dbContextLocator)
  12. {
  13. return new[]
  14. {
  15. new SysOrg { Id = 1, Pid = 0, Pids = "[0],", OrgType = OrgType.CENTER, OrgFundSource = OrgFundSource.NONE, EducationStage = EducationStage.NONE, UrbanRuralType = UrbanRuralType.NONE, Code = "000", UniqueCode = "A000", FullName = "渝北区教育委员会", Name = "区教委", ShortName = "区教委", ShortName2 = "区教委", TqesId = 0, TqesCode = "", Sort = 10, Status = CommonStatus.ENABLE, CreateSysUserId = 1, CreateTime = DateTime.Now },
  16. };
  17. }
  18. }