using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
namespace YBEE.EQM.Core.SeedData;
///
/// 高中赋分转换等级种子数据
///
public class NceeConvertGradeSeedData : IEntitySeedData
{
public IEnumerable HasData(DbContext dbContext, Type dbContextLocator)
{
return new[]
{
new NceeConvertGrade { Id = 1, Name = "A", Rate = 0.15M, BeginRate = 0M, EndRate = 0.15M, MinScore = 86M, MaxScore = 100M },
new NceeConvertGrade { Id = 2, Name = "B", Rate = 0.35M, BeginRate = 0.15M, EndRate = 0.5M, MinScore = 71M, MaxScore = 85M },
new NceeConvertGrade { Id = 3, Name = "C", Rate = 0.35M, BeginRate = 0.5M, EndRate = 0.85M, MinScore = 56M, MaxScore = 70M },
new NceeConvertGrade { Id = 4, Name = "D", Rate = 0.13M, BeginRate = 0.85M, EndRate = 0.98M, MinScore = 41M, MaxScore = 55M },
new NceeConvertGrade { Id = 5, Name = "E", Rate = 0.02M, BeginRate = 0.98M, EndRate = 1M, MinScore = 30M, MaxScore = 40M },
};
}
}