- 進入學生管理介面
- 登入學生資料
- 顯示比賽資訊
- 呈現學生選課狀況 P.S.輸入選課代碼及成績
- 複製檔案到本地
- 設置資料庫
- 新增
appsettings.Development.json,設置連接字串來連接您的 SQL Server
{
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-StudentManagement-f606416b-0ba3-4447-9a03-80f84a360bcf;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
- 建立資料庫
- 在 Visual Studio 中,打開 Package Manager Console,執行以下命令來建立資料庫:
Add-Migration InitialCreate
Update-Database