JWT(JSON Web Tokens)是一種開放、標準的 RFC 7519 方法,用於在兩方之間以JSON物件安全的傳遞訊息。本篇將以ASP.NET Core…
ASP.NET Core 5.0 撰寫RESTful API的新增、查詢、修改、刪除功能,以及參數來源與StatusCodes設定Http Status Code。最後,在.NET…
紀錄APS.NET Core使用Database-First方式存取資料的操作流程跟步驟。
步驟
ASP.NET MVC專案使用NPOI套件。前端上傳Excel檔案,後端接收檔案(HttpPostedFileBase)後使用NPOI解析Excel至DataTable,並將資料新增至資料庫中。
將SQL Server Reporting Services嵌入到ASP.NET MVC專案中。紀錄ASP.NET MVC使用套件ReportViewerForMvc呼叫SSRS報表的步驟。
SQL Server Reporting Services。連結SQL Server的資料產生報表的報表伺服器。紀錄:建立報表伺服器、報表伺服器專案、資料來源、報表開發、呼叫SSRS報表。
Autofac是一個依賴注入(Dependency Injection,DI)的容器套件,達到控制反轉(Inversion of Control,IoC)的設計原則,降低程式碼的耦合性。
依賴注入(DI)
使用aspnet_regiis.exe建立RSA金鑰,將 web.config 裡的資料庫連線字串等較為敏感的內容做加密。