###### tags: `Sanby` # 2023/05/01 :::danger 下次聚會時間:5/21 8:30~12:00 目標:課程到P40 課程連結:[c#入门到高级(全)](https://www.bilibili.com/video/BV17G4y1b78i?p=2) ::: ### Edge將網頁變成應用程式  ### swagger VisualStuido 開WebAPI專案後,執行可用來驗證Responce資料的網頁工具 本次範例為 Responce :當下時間、篩選ToList資料並顯示 ### For VisualStuido 2019 安裝swagger必要語法 { settings.PostProcess = document => { document.Info.Version = "Ver 1.0.1.3"; document.Info.Title = "Woody API"; document.Info.Description = "Woody API"; }; settings.AddSecurity("Bearer", Enumerable.Empty<string>(), new NSwag.OpenApiSecurityScheme() { Description = "JWT Authentication : Bearer {token}", Name = "Authorization", In = NSwag.OpenApiSecurityApiKeyLocation.Header, Type = NSwag.OpenApiSecuritySchemeType.ApiKey }); }); ~~~ app.UseOpenApi(); // strat OpenAPI document app.UseSwaggerUi3(); // strat Swagger UI ~~~ ### 手動安裝套件位置  ### 快捷鍵 - Ctrl+K+C 備註 - Ctrl+K+U 解備註 - Ctrl+A 全選後,Ctrl+MM 縮小/展開 - Ctrl+R+G 將沒有用到的using的引用命名空間刪除 ### sourcetree Git的GUI(圖形使用者介面)工具,每一版變更都可以記錄備註,以利同時開發時部分功能可不上版...等 ### 快速連資料庫語法 dotnet ef dbcontext scaffold “Server=192.168.82.131;Database=OwinAgent;User ID=owin-agent-api;Password=Pf%TuMX#” Microsoft.EntityFrameworkCore.SqlServer -o “Entity” -f
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up