NceeCourseCombSeedData.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334
  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 NceeCourseCombSeedData : IEntitySeedData<NceeCourseComb>
  10. {
  11. public IEnumerable<NceeCourseComb> HasData(DbContext dbContext, Type dbContextLocator)
  12. {
  13. return new[]
  14. {
  15. new NceeCourseComb { Id = 0, FirstCourseId = 200, SecondCourseId = 200, ThirdCourseId = 200, Name = "未选科", ShortName = "未选科" },
  16. new NceeCourseComb { Id = 1, FirstCourseId = 4, SecondCourseId = 5, ThirdCourseId = 6, Name = "物理、化学、生物", ShortName = "物化生" },
  17. new NceeCourseComb { Id = 2, FirstCourseId = 4, SecondCourseId = 5, ThirdCourseId = 7, Name = "物理、化学、政治", ShortName = "物化政" },
  18. new NceeCourseComb { Id = 3, FirstCourseId = 4, SecondCourseId = 5, ThirdCourseId = 9, Name = "物理、化学、地理", ShortName = "物化地" },
  19. new NceeCourseComb { Id = 4, FirstCourseId = 4, SecondCourseId = 6, ThirdCourseId = 7, Name = "物理、生物、政治", ShortName = "物生政" },
  20. new NceeCourseComb { Id = 5, FirstCourseId = 4, SecondCourseId = 6, ThirdCourseId = 9, Name = "物理、生物、地理", ShortName = "物生地" },
  21. new NceeCourseComb { Id = 6, FirstCourseId = 4, SecondCourseId = 7, ThirdCourseId = 9, Name = "物理、政治、地理", ShortName = "物政地" },
  22. new NceeCourseComb { Id = 7, FirstCourseId = 8, SecondCourseId = 5, ThirdCourseId = 6, Name = "历史、化学、生物", ShortName = "史化生" },
  23. new NceeCourseComb { Id = 8, FirstCourseId = 8, SecondCourseId = 5, ThirdCourseId = 7, Name = "历史、化学、政治", ShortName = "史化政" },
  24. new NceeCourseComb { Id = 9, FirstCourseId = 8, SecondCourseId = 5, ThirdCourseId = 9, Name = "历史、化学、地理", ShortName = "史化地" },
  25. new NceeCourseComb { Id = 10, FirstCourseId = 8, SecondCourseId = 6, ThirdCourseId = 7, Name = "历史、生物、政治", ShortName = "史生政" },
  26. new NceeCourseComb { Id = 11, FirstCourseId = 8, SecondCourseId = 6, ThirdCourseId = 9, Name = "历史、生物、地理", ShortName = "史生地" },
  27. new NceeCourseComb { Id = 12, FirstCourseId = 8, SecondCourseId = 7, ThirdCourseId = 9, Name = "历史、政治、地理", ShortName = "史政地" },
  28. };
  29. }
  30. }