From b854fd36b348bb5a11b21fe06d9dddcce4f962f9 Mon Sep 17 00:00:00 2001 From: luolangaga <2667210109@qq.com> Date: Sun, 25 Aug 2024 00:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E6=8A=A5=E5=90=8D=EF=BC=88?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asg_form/Controllers/Champion.cs | 2 +- asg_form/Controllers/Dbset.cs | 42 +++++++++++++++++++++++++---- asg_form/Controllers/Events.cs | 27 ++++++++++--------- asg_form/Controllers/Team/TeamDB.cs | 35 ++++++++++++++++++++++++ asg_form/Controllers/form_cs.cs | 2 +- 5 files changed, 89 insertions(+), 19 deletions(-) create mode 100644 asg_form/Controllers/Team/TeamDB.cs diff --git a/asg_form/Controllers/Champion.cs b/asg_form/Controllers/Champion.cs index 3699c68..ee133c1 100644 --- a/asg_form/Controllers/Champion.cs +++ b/asg_form/Controllers/Champion.cs @@ -110,7 +110,7 @@ namespace asg_form.Controllers { public long Id { get; set; } public form form { get; set; } - public Events.T_events events { get; set; } + public T_events events { get; set; } public string msg { get; set; } } diff --git a/asg_form/Controllers/Dbset.cs b/asg_form/Controllers/Dbset.cs index ddeed1e..c2d6be3 100644 --- a/asg_form/Controllers/Dbset.cs +++ b/asg_form/Controllers/Dbset.cs @@ -1,5 +1,6 @@ using asg_form.Controllers.Store; +using asg_form.Controllers.Team; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.DataEncryption; @@ -27,6 +28,9 @@ namespace asg_form.Controllers builder.Property(a => a.Status).IsRequired(); } } + + + public void Configure(EntityTypeBuilder