更新 C#

leo 2024-04-22 12:51:43 +08:00
parent 541d6ab706
commit 1dc3cef75a

@ -133,4 +133,10 @@ select c
## ##
# WEBAPI # WEBAPI
### 建立新專案 ### 建立新專案
### 基本上都與ASPNET相同就這部分要注意
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8717.png)
### 連接資料庫的方式都與ASPNET一樣這邊只是將ASPNET中的MVC去除View去更專注在後端這邊建立控制器的方式也有點不同
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8718.png)
### 其餘的就好好看先前提到的ORM框架與LINQ去構建出API即可
### 運行之後:
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8719.png)