GradeSeedData.cs 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 GradeSeedData : IEntitySeedData<Grade>
  10. {
  11. public IEnumerable<Grade> HasData(DbContext dbContext, Type dbContextLocator)
  12. {
  13. return new[]
  14. {
  15. new Grade { Id = 11, EducationStage = EducationStage.PRESCHOOL_STAGE, GradeNumber = 1, GradeNumber2 = 1, Name = "小班", FullName = "幼儿园小班", ShortName = "小班", Status = CommonStatus.ENABLE },
  16. new Grade { Id = 12, EducationStage = EducationStage.PRESCHOOL_STAGE, GradeNumber = 2, GradeNumber2 = 2, Name = "中班", FullName = "幼儿园中班", ShortName = "中班", Status = CommonStatus.ENABLE },
  17. new Grade { Id = 13, EducationStage = EducationStage.PRESCHOOL_STAGE, GradeNumber = 3, GradeNumber2 = 3, Name = "大班", FullName = "幼儿园大班", ShortName = "大班", Status = CommonStatus.ENABLE },
  18. new Grade { Id = 21, EducationStage = EducationStage.PRIMARY_SCHOOL_STAGE, GradeNumber = 1, GradeNumber2 = 1, Name = "一年级", FullName = "小学一年级", ShortName = "一", Status = CommonStatus.ENABLE },
  19. new Grade { Id = 22, EducationStage = EducationStage.PRIMARY_SCHOOL_STAGE, GradeNumber = 2, GradeNumber2 = 2, Name = "二年级", FullName = "小学二年级", ShortName = "二", Status = CommonStatus.ENABLE },
  20. new Grade { Id = 23, EducationStage = EducationStage.PRIMARY_SCHOOL_STAGE, GradeNumber = 3, GradeNumber2 = 3, Name = "三年级", FullName = "小学三年级", ShortName = "三", Status = CommonStatus.ENABLE },
  21. new Grade { Id = 24, EducationStage = EducationStage.PRIMARY_SCHOOL_STAGE, GradeNumber = 4, GradeNumber2 = 4, Name = "四年级", FullName = "小学四年级", ShortName = "四", Status = CommonStatus.ENABLE },
  22. new Grade { Id = 25, EducationStage = EducationStage.PRIMARY_SCHOOL_STAGE, GradeNumber = 5, GradeNumber2 = 5, Name = "五年级", FullName = "小学五年级", ShortName = "五", Status = CommonStatus.ENABLE },
  23. new Grade { Id = 26, EducationStage = EducationStage.PRIMARY_SCHOOL_STAGE, GradeNumber = 6, GradeNumber2 = 6, Name = "六年级", FullName = "小学六年级", ShortName = "六", Status = CommonStatus.ENABLE },
  24. new Grade { Id = 37, EducationStage = EducationStage.JUNIOR_HIGH_SCHOOL_STAGE, GradeNumber = 7, GradeNumber2 = 1, Name = "七年级", FullName = "初中七年级", ShortName = "初一", Status = CommonStatus.ENABLE },
  25. new Grade { Id = 38, EducationStage = EducationStage.JUNIOR_HIGH_SCHOOL_STAGE, GradeNumber = 8, GradeNumber2 = 2, Name = "八年级", FullName = "初中八年级", ShortName = "初二", Status = CommonStatus.ENABLE },
  26. new Grade { Id = 39, EducationStage = EducationStage.JUNIOR_HIGH_SCHOOL_STAGE, GradeNumber = 9, GradeNumber2 = 3, Name = "七年级", FullName = "初中九年级", ShortName = "初三", Status = CommonStatus.ENABLE },
  27. new Grade { Id = 41, EducationStage = EducationStage.SENIOR_HIGH_SCHOOL_STAGE, GradeNumber = 1, GradeNumber2 = 1, Name = "一年级", FullName = "高中一年级", ShortName = "高一", Status = CommonStatus.ENABLE },
  28. new Grade { Id = 42, EducationStage = EducationStage.SENIOR_HIGH_SCHOOL_STAGE, GradeNumber = 2, GradeNumber2 = 2, Name = "二年级", FullName = "高中二年级", ShortName = "高二", Status = CommonStatus.ENABLE },
  29. new Grade { Id = 43, EducationStage = EducationStage.SENIOR_HIGH_SCHOOL_STAGE, GradeNumber = 3, GradeNumber2 = 3, Name = "三年级", FullName = "高中三年级", ShortName = "高三", Status = CommonStatus.ENABLE },
  30. };
  31. }
  32. }