CourseCombSeedData.cs 2.3 KB

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