From 59bc8fe5112553859bf0bbcfcbd927868b12d9d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=AF=85?= <2667210109@qq.com>
Date: Sun, 17 Nov 2024 13:37:37 +0800
Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E8=80=81=E6=8A=A5=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
asg_form/Controllers/Dbset.cs | 14 +-
asg_form/Controllers/Events.cs | 7 +-
asg_form/Controllers/Team/TeamDB.cs | 35 ---
asg_form/Controllers/Team/Team_http.cs | 392 -------------------------
asg_form/Controllers/admin.cs | 6 +-
asg_form/Controllers/excel.cs | 7 +-
asg_form/Controllers/form_cs.cs | 160 +++++++---
asg_form/Controllers/schedule.cs | 1 -
asg_form/Controllers/user_form.cs | 8 +-
asg_form/User.cs | 3 +-
asg_form/asg_form.csproj | 1 +
11 files changed, 144 insertions(+), 490 deletions(-)
delete mode 100644 asg_form/Controllers/Team/TeamDB.cs
delete mode 100644 asg_form/Controllers/Team/Team_http.cs
diff --git a/asg_form/Controllers/Dbset.cs b/asg_form/Controllers/Dbset.cs
index 9e0276f..cf0cebc 100644
--- a/asg_form/Controllers/Dbset.cs
+++ b/asg_form/Controllers/Dbset.cs
@@ -2,7 +2,6 @@
//using asg_form.Controllers.Budget;
using asg_form.Controllers.Budget;
using asg_form.Controllers.Store;
-using asg_form.Controllers.Team;
using asg_form.Controllers.Teamregistration;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
@@ -72,6 +71,9 @@ namespace asg_form.Controllers
}
+ /* ///
+ ///
+ ///
class TeamConfig : IEntityTypeConfiguration
{
public void Configure(EntityTypeBuilder builder)
@@ -85,8 +87,8 @@ namespace asg_form.Controllers
builder.HasMany(a => a.Events).WithMany(a => a.Teams).UsingEntity(j => j.ToTable("T_Teams_Player"));
}
- }
-
+ }*/
+/*
class PlayerConfig : IEntityTypeConfiguration
{
public void Configure(EntityTypeBuilder builder)
@@ -96,7 +98,7 @@ namespace asg_form.Controllers
}
}
-
+*/
class RoleConfig : IEntityTypeConfiguration
{
@@ -265,8 +267,8 @@ namespace asg_form.Controllers
class TestDbContext : DbContext
{
- public DbSet Teams { get; set; }
- public DbSet Players { get; set; }
+ /* public DbSet Teams { get; set; }
+ public DbSet Players { get; set; }*/
public DbSet