README C
This commit is contained in:
parent
5f65a392a7
commit
adfaf32702
|
@ -0,0 +1,132 @@
|
|||
# .NET
|
||||
## 介紹
|
||||
### 目前都以.NET6去做開發,有以下特點
|
||||
* 簡化的開發:非常容易上手。 C# 10中的新語言功能可減少您需要撰寫的程式碼數量。 對 Web 堆疊和最少 API 的投資,可讓您輕鬆快速寫入較小且更快速的微服務。
|
||||
* 效能較佳:.NET 6 是最快的完整堆疊 Web 架構,如果在雲端中執行,則可降低計算成本。
|
||||
* 極致生產力:.NET 6 和 Visual Studio 2022 會提供熱重新載入、新 Git 工具、智慧型程式碼編輯、強固診斷和測試工具,及更好的小組共同作業。
|
||||
### 講建立專案的部分前,先看過Enity Framework core 與 LinQ
|
||||
##
|
||||
## Enity Framework core
|
||||
### 是一個ORM框架,可以大幅減少使用SQL語法,且透過強型別取得與操作物件資料
|
||||
#### 建立連線
|
||||
```
|
||||
private readonly SqlContext _context;
|
||||
public Test_0612_01Controller(SqlContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
|
||||
```
|
||||
#### 新增資料
|
||||
```
|
||||
_context.表名稱.Add(遇新增的資料);
|
||||
```
|
||||
#### 刪除資料
|
||||
```
|
||||
_context.表名稱.FindAsync(id);
|
||||
```
|
||||
|
||||
#### 儲存變更
|
||||
```
|
||||
_context.SaveChangesAsync();
|
||||
```
|
||||
#### 搜尋資料
|
||||
##### 全部資料
|
||||
```
|
||||
_context.表名稱.ToListAsync();
|
||||
```
|
||||
##### 指定資料
|
||||
```
|
||||
_context.表名稱.FindAsync(id);
|
||||
```
|
||||
##### 條件式資料
|
||||
```
|
||||
_context.表名稱.Where(L=>L.條件式);
|
||||
```
|
||||
##
|
||||
## LinQ(音link)
|
||||
### 一種數據查詢語言,被廣泛應用於C#中
|
||||
### 對做API來說,常常需要針對不同資料做提取,這邊使用LinQ會方便很多
|
||||
#### 查詢表名稱內所有資料
|
||||
```
|
||||
from c in _context.表名稱
|
||||
select c
|
||||
```
|
||||
#### 查詢表名稱符合條件A的資料
|
||||
```
|
||||
from c in _context.表名稱
|
||||
where 條件A
|
||||
select c
|
||||
```
|
||||
#### 查詢表名稱內所有資料並由小至大
|
||||
```
|
||||
from c in _context.表名稱
|
||||
orderby 欄位名
|
||||
select c
|
||||
```
|
||||
##
|
||||
## VS2022
|
||||
### 安裝 [下載連接](https://visualstudio.microsoft.com/zh-hant/vs/compare/)
|
||||
### 下載後,若單純架設網站選擇ASP.NET 與 Node.js(之後寫Vue會用到)
|
||||
### 若需要維護Winform 或是WPF 則選擇.NET桌面開發
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%871.png)
|
||||
|
||||
### 若需要快速建立,則直接使用我提供的DEMO去做開發
|
||||
##
|
||||
# ASPNET
|
||||
### 建立新專案
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%872.png)
|
||||
|
||||
### 選擇版本 (這邊以.NET6做教學 目前最新的.NET8)
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%873.png)
|
||||
|
||||
### 啟動
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%874.png)
|
||||
|
||||
### 安裝套件包(NuGet)
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%875.png)
|
||||
### 設定資料庫連線
|
||||
#### 於appsettings.json 中加入
|
||||
```
|
||||
//連接MYSQL
|
||||
"ConnectionStrings": {
|
||||
"tarefasConnection": "server=140.125.21.65;port=3307;uid=VIP125;pwd=@VIPvip125;database=VIP125"
|
||||
}
|
||||
```
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%876.png)
|
||||
|
||||
#### 於Program.cs中加入設定
|
||||
```
|
||||
builder.Services.AddDbContext<SqlContext>(opt =>
|
||||
{
|
||||
string connectionString = builder.Configuration.GetConnectionString("tarefasConnection");
|
||||
var serverVersion = ServerVersion.AutoDetect(connectionString);
|
||||
opt.UseMySql(connectionString, serverVersion);
|
||||
});
|
||||
```
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%877.png)
|
||||
### 建立與資料庫table的連線
|
||||
#### 創建Model
|
||||
建議將創建的Model名稱第一個字大寫,資料庫內部資料表名用小寫,這樣較好對比
|
||||
Model內容需要跟資料表的欄位名稱相對應
|
||||
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%879.png)
|
||||
#### 創建Services
|
||||
Haskey指的是不會重複的
|
||||
像是身份證字號這種的就不會重複
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%878.png)
|
||||
|
||||
### 創建控制器
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8710.png)
|
||||
### 創建出來的頁面
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8711.png)
|
||||
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8712.png)
|
||||
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8713.png)
|
||||
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8714.png)
|
||||
|
||||
![](http://140.125.21.65:8418/Education/Backend/raw/branch/master/C_shape/img/%E5%9C%96%E7%89%8715.png)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,34 +1,34 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\",
|
||||
"WorkspaceRootPath": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|z:\\leo\\\u7B46\u96FB\\code\\project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\sqlite\\webapi_demo\\webapi_demo\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|z:\\leo\\\u7B46\u96FB\\code\\project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\sqlite\\webapi_demo\\webapi_demo\\controllers\\test1controller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\controllers\\test1controller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|z:\\leo\\\u7B46\u96FB\\code\\project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\sqlite\\webapi_demo\\webapi_demo\\controllers\\test_0612_01controller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|c:\\users\\pc\\desktop\\t1\\beckend\\c_shape\\webapi\\sqlite\\webapi_demo\\webapi_demo\\controllers\\test_0612_01controller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\controllers\\test_0612_01controller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|z:\\leo\\\u7B46\u96FB\\code\\project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\sqlite\\webapi_demo\\webapi_demo\\properties\\launchsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\properties\\launchsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|c:\\users\\pc\\desktop\\t1\\beckend\\c_shape\\webapi\\sqlite\\webapi_demo\\webapi_demo\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|z:\\leo\\\u7B46\u96FB\\code\\project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\sqlite\\webapi_demo\\webapi_demo\\services\\sqlcontext.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\services\\sqlcontext.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|c:\\users\\pc\\desktop\\t1\\beckend\\c_shape\\webapi\\sqlite\\webapi_demo\\webapi_demo\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|z:\\leo\\\u7B46\u96FB\\code\\project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\sqlite\\webapi_demo\\webapi_demo\\models\\test1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|c:\\users\\pc\\desktop\\t1\\beckend\\c_shape\\webapi\\sqlite\\webapi_demo\\webapi_demo\\controllers\\test1controller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\controllers\\test1controller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|c:\\users\\pc\\desktop\\t1\\beckend\\c_shape\\webapi\\sqlite\\webapi_demo\\webapi_demo\\models\\test1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\models\\test1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|z:\\leo\\\u7B46\u96FB\\code\\project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\sqlite\\webapi_demo\\webapi_demo\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|c:\\users\\pc\\desktop\\t1\\beckend\\c_shape\\webapi\\sqlite\\webapi_demo\\webapi_demo\\services\\sqlcontext.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\services\\sqlcontext.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|c:\\users\\pc\\desktop\\t1\\beckend\\c_shape\\webapi\\sqlite\\webapi_demo\\webapi_demo\\properties\\launchsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
|
||||
"RelativeMoniker": "D:0:0:{965D190C-DF37-414D-9EAA-88F56613F5C8}|WEBAPI_DEMO\\WEBAPI_DEMO.csproj|solutionrelative:webapi_demo\\properties\\launchsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 247,
|
||||
"SelectedChildIndex": 6,
|
||||
"SelectedChildIndex": 5,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
|
@ -46,11 +46,11 @@
|
|||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 3,
|
||||
"DocumentIndex": 6,
|
||||
"Title": "launchSettings.json",
|
||||
"DocumentMoniker": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Properties\\launchSettings.json",
|
||||
"DocumentMoniker": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Properties\\launchSettings.json",
|
||||
"RelativeDocumentMoniker": "WEBAPI_DEMO\\Properties\\launchSettings.json",
|
||||
"ToolTip": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Properties\\launchSettings.json",
|
||||
"ToolTip": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Properties\\launchSettings.json",
|
||||
"RelativeToolTip": "WEBAPI_DEMO\\Properties\\launchSettings.json",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAoAAAAuAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
|
||||
|
@ -58,78 +58,81 @@
|
|||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"DocumentIndex": 3,
|
||||
"Title": "Test1Controller.cs",
|
||||
"DocumentMoniker": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Controllers\\Test1Controller.cs",
|
||||
"DocumentMoniker": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Controllers\\Test1Controller.cs",
|
||||
"RelativeDocumentMoniker": "WEBAPI_DEMO\\Controllers\\Test1Controller.cs",
|
||||
"ToolTip": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Controllers\\Test1Controller.cs",
|
||||
"ToolTip": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Controllers\\Test1Controller.cs",
|
||||
"RelativeToolTip": "WEBAPI_DEMO\\Controllers\\Test1Controller.cs",
|
||||
"ViewState": "AQIAAFIAAAAAAAAAAAAUwGMAAAAfAAAA",
|
||||
"ViewState": "AQIAADIAAAAAAAAAAAAQwGMAAAAfAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-02-28T12:20:38.474Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 5,
|
||||
"DocumentIndex": 4,
|
||||
"Title": "Test1.cs",
|
||||
"DocumentMoniker": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Models\\Test1.cs",
|
||||
"DocumentMoniker": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Models\\Test1.cs",
|
||||
"RelativeDocumentMoniker": "WEBAPI_DEMO\\Models\\Test1.cs",
|
||||
"ToolTip": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Models\\Test1.cs",
|
||||
"ToolTip": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Models\\Test1.cs",
|
||||
"RelativeToolTip": "WEBAPI_DEMO\\Models\\Test1.cs",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAcAAAAxAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-02-28T12:18:12.129Z"
|
||||
"WhenOpened": "2024-02-28T12:18:12.129Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 4,
|
||||
"DocumentIndex": 5,
|
||||
"Title": "SqlContext.cs",
|
||||
"DocumentMoniker": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Services\\SqlContext.cs",
|
||||
"DocumentMoniker": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Services\\SqlContext.cs",
|
||||
"RelativeDocumentMoniker": "WEBAPI_DEMO\\Services\\SqlContext.cs",
|
||||
"ToolTip": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Services\\SqlContext.cs",
|
||||
"ToolTip": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Services\\SqlContext.cs",
|
||||
"RelativeToolTip": "WEBAPI_DEMO\\Services\\SqlContext.cs",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAACQAAABMAAAA",
|
||||
"ViewState": "AQIAAAYAAAAAAAAAAAAAACQAAAAgAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2023-06-12T09:35:49.39Z"
|
||||
"WhenOpened": "2023-06-12T09:35:49.39Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 2,
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Test_0612_01Controller.cs",
|
||||
"DocumentMoniker": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Controllers\\Test_0612_01Controller.cs",
|
||||
"DocumentMoniker": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Controllers\\Test_0612_01Controller.cs",
|
||||
"RelativeDocumentMoniker": "WEBAPI_DEMO\\Controllers\\Test_0612_01Controller.cs",
|
||||
"ToolTip": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Controllers\\Test_0612_01Controller.cs",
|
||||
"ToolTip": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Controllers\\Test_0612_01Controller.cs",
|
||||
"RelativeToolTip": "WEBAPI_DEMO\\Controllers\\Test_0612_01Controller.cs",
|
||||
"ViewState": "AQIAACcAAAAAAAAAAAAIwEgAAAAmAAAA",
|
||||
"ViewState": "AQIAAC8AAAAAAAAAAAAQwEgAAAAmAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2023-06-12T09:50:07.285Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"DocumentIndex": 1,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Program.cs",
|
||||
"RelativeDocumentMoniker": "WEBAPI_DEMO\\Program.cs",
|
||||
"ToolTip": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\Program.cs",
|
||||
"RelativeToolTip": "WEBAPI_DEMO\\Program.cs",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAABoAAAADAAAA",
|
||||
"ViewState": "AQIAACoAAAAAAAAAAAAAABoAAAADAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2023-06-12T09:30:39.559Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 6,
|
||||
"DocumentIndex": 2,
|
||||
"Title": "appsettings.json",
|
||||
"DocumentMoniker": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\appsettings.json",
|
||||
"DocumentMoniker": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\appsettings.json",
|
||||
"RelativeDocumentMoniker": "WEBAPI_DEMO\\appsettings.json",
|
||||
"ToolTip": "Z:\\leo\\\u7B46\u96FB\\CODE\\Project\\\u5F35\u5A01\u52DD_\u9762\u8A66\u8CC7\u6599\\\u627E\u5DE5\u4F5C\\\u5275\u5275\\\u4E0A\u6A5F\u8003\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\appsettings.json",
|
||||
"ToolTip": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\appsettings.json",
|
||||
"RelativeToolTip": "WEBAPI_DEMO\\appsettings.json",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAoAAABiAAAA",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAgAAAACAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
|
||||
"WhenOpened": "2023-06-12T09:48:43.956Z"
|
||||
"WhenOpened": "2023-06-12T09:48:43.956Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ using System.Reflection;
|
|||
[assembly: System.Reflection.AssemblyCompanyAttribute("WEBAPI_DEMO")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5f65a392a7ac08c8b4dbb651fdea3e9df2c4238a")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("WEBAPI_DEMO")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("WEBAPI_DEMO")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
|
|
@ -1 +1 @@
|
|||
9de975cb1fbfa90a58a79b5ef45b8aabebc53c0e223ad6a68a30b943278c0cec
|
||||
555c81559dc07db4ca40591c36113cbed0d0f6921d6d94a69da18d329b799078
|
||||
|
|
|
@ -9,11 +9,11 @@ build_property.EnforceExtendedAnalyzerRules =
|
|||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = WEBAPI_DEMO
|
||||
build_property.RootNamespace = WEBAPI_DEMO
|
||||
build_property.ProjectDir = Z:\leo\筆電\CODE\Project\張威勝_面試資料\找工作\創創\上機考\webapi_demo\Sqlite\WEBAPI_DEMO\WEBAPI_DEMO\
|
||||
build_property.ProjectDir = C:\Users\PC\Desktop\T1\Beckend\C_shape\WEBAPI\Sqlite\WEBAPI_DEMO\WEBAPI_DEMO\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.RazorLangVersion = 6.0
|
||||
build_property.SupportLocalizedComponentNames =
|
||||
build_property.GenerateRazorMetadataSourceChecksumAttributes =
|
||||
build_property.MSBuildProjectDirectory = Z:\leo\筆電\CODE\Project\張威勝_面試資料\找工作\創創\上機考\webapi_demo\Sqlite\WEBAPI_DEMO\WEBAPI_DEMO
|
||||
build_property.MSBuildProjectDirectory = C:\Users\PC\Desktop\T1\Beckend\C_shape\WEBAPI\Sqlite\WEBAPI_DEMO\WEBAPI_DEMO
|
||||
build_property._RazorSourceGeneratorDebug =
|
||||
|
|
Binary file not shown.
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj": {}
|
||||
"C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj": {
|
||||
"C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"projectUniqueName": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"projectName": "WEBAPI_DEMO",
|
||||
"projectPath": "Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"projectPath": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"packagesPath": "C:\\Users\\PC\\.nuget\\packages\\",
|
||||
"outputPath": "Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\obj\\",
|
||||
"outputPath": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
|
|
|
@ -12183,11 +12183,11 @@
|
|||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"projectUniqueName": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"projectName": "WEBAPI_DEMO",
|
||||
"projectPath": "Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"projectPath": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"packagesPath": "C:\\Users\\PC\\.nuget\\packages\\",
|
||||
"outputPath": "Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\obj\\",
|
||||
"outputPath": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "D1KtYC/dc3M26nJ9gFzSmI54Y+iKUsp75zgqnEmWr1Vik82guj1x+1OkChFU6OVo2L73LCzQz4xbY70F2JHh4g==",
|
||||
"dgSpecHash": "6Q1ooGYag2NQcUE2+sozovuDVyV1gaIZyYUk9L72swEk1plC9wAb94LTg+ceFiFRRA+oAtvi/GVTA1EOmEmNVg==",
|
||||
"success": true,
|
||||
"projectFilePath": "Z:\\leo\\筆電\\CODE\\Project\\張威勝_面試資料\\找工作\\創創\\上機考\\webapi_demo\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"projectFilePath": "C:\\Users\\PC\\Desktop\\T1\\Beckend\\C_shape\\WEBAPI\\Sqlite\\WEBAPI_DEMO\\WEBAPI_DEMO\\WEBAPI_DEMO.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"C:\\Users\\PC\\.nuget\\packages\\azure.core\\1.24.0\\azure.core.1.24.0.nupkg.sha512",
|
||||
"C:\\Users\\PC\\.nuget\\packages\\azure.identity\\1.6.0\\azure.identity.1.6.0.nupkg.sha512",
|
||||
|
|
Loading…
Reference in New Issue
Block a user