2025-10-30 10:41:42 +08:00
|
|
|
|
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<AppDbContext> options)
|
|
|
|
|
|
: base(options)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-11 14:30:29 +08:00
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
modelBuilder.Entity<SixGroupPoints>().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 )
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-10-30 10:41:42 +08:00
|
|
|
|
public DbSet<BasicConfig> BasicConfig { get; set; }
|
2025-11-11 14:30:29 +08:00
|
|
|
|
|
|
|
|
|
|
public DbSet<SixGroupPoints> SixGroupPoints { get; set; }
|
2025-10-30 10:41:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|