using AiSportsMicrospaceDB.Entities; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AiSportsMicrospaceDB.DBContext { public class AppDbContext : DbContext { public AppDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().HasData( new SixGroupPoints { Id = 1, points = [ (0.21, 0.88 ), (0.36, 0.58 ), (0.50, 0.88), (0.64, 0.58 ), (0.78, 0.88), (0.92, 0.58 ) ] }); } public DbSet BasicConfig { get; set; } public DbSet SixGroupPoints { get; set; } } }