Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
interview:developer:dotnet:start [2022/07/18 12:58] – created don.lee | interview:developer:dotnet:start [2022/10/12 14:40] (current) – joe.mao | ||
---|---|---|---|
Line 4: | Line 4: | ||
^ 时限 | 1小时 | | ^ 时限 | 1小时 | | ||
- | ^ 提交方法 | 请把代碼和相关的文件用ZIP(不可用RAR或其他格式)压缩后电邮至 | + | ^ 提交方法 | 请把代碼和相关的文件用ZIP(不可用RAR或其他格式)压缩后电邮至 |
- | <note warning> | + | <note warning> |
- | ===== 目标 ===== | + | ===== 題目 ===== |
* StockController 是新建的API控制器,在建立時該控制器會透過 DI 取得dbcontext實例。現在我們需要在這控制器上增加一個RESTFUL 的webapi endpoint。 | * StockController 是新建的API控制器,在建立時該控制器會透過 DI 取得dbcontext實例。現在我們需要在這控制器上增加一個RESTFUL 的webapi endpoint。 | ||
Line 24: | Line 24: | ||
- | * 新增endpoint名稱會是exist,其功能是通過DB Context類別,使用資料庫中的貨物表(tb_stock),查詢貨物的stockcode是否已經存在。請嘗試設計貨物資料表的資料欄位,其中必需包括stockcode,這個是tb_stock的key value。 | + | * 新增endpoint名稱會是exist,其功能是通過DB Context類別,使用資料庫中的貨物表(tb_stock),查詢貨物的stockcode是否已經存在。 |
- | * endpoint完成後將會回應(Response)api_response 資料模型。 | + | |
+ | ===== 目标 ===== | ||
+ | |||
+ | * 請嘗試設計貨物資料表的資料欄位,其中必需包括stockcode,這個是tb_stock的key value。 | ||
+ | * 新增exist | ||
< | < |