asp.net core 5.0的一些模块
.net 5就要發布了,把asp.net core 3.1的一些模塊改成了5.0來適配,基本都是體力活,沒有太大改動。
ORM
dapper一個輕量級的ORM,重點實現SQL語句實體映射,用sql不失靈活高效,映射用實體不失簡便快捷,同時適配大部分數據庫。https://github.com/axzxs2001/aspnetcore5.0/tree/master/aspnetcore5.0/Dapper
監控
prometheus通用監控組件,kubernetes之友https://github.com/axzxs2001/aspnetcore5.0/tree/master/aspnetcore5.0/Prometheus
日志
nlog簡單方便的log框架,配置功能強大,無縫對接asp.net core,https://github.com/axzxs2001/aspnetcore5.0/tree/master/aspnetcore5.0/LogDemo/LogDemo01_NLog
API文檔查看
swagger被asp.net core官方web api模板內置,可見其易用,廣泛。https://github.com/axzxs2001/aspnetcore5.0/tree/master/aspnetcore5.0/API/APIDemo02
認證授權
官方模塊,利用JWT驗證,進行了簡單的封裝,https://github.com/axzxs2001/aspnetcore5.0/tree/master/aspnetcore5.0/AuthenticationAndAuthorization
健康檢查
官方模塊,實現了調用,是應用健康的必備
https://github.com/axzxs2001/aspnetcore5.0/tree/master/aspnetcore5.0/HealthChecks
本地化
做多語言的必看,官方模塊,注意SharedResource.cs的位置
https://github.com/axzxs2001/aspnetcore5.0/tree/master/aspnetcore5.0/GlobalizationAndLocalization/GlobalizationLocalizationDemo01
.net5發布后,會切換成正式的包,同時也會增加我工作中用到的一些模塊,我的GitHub:https://github.com/axzxs2001/aspnetcore5.0
總結
以上是生活随笔為你收集整理的asp.net core 5.0的一些模块的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JetBrains 开发者调查 - 编程
- 下一篇: 究竟是什么可以比反射还快实现动态调用?