質問編集履歴

2

型名を変更

2022/10/04 05:38

投稿

Y.Mamoru
Y.Mamoru

スコア47

test CHANGED
File without changes
test CHANGED
@@ -21,7 +21,7 @@
21
21
  public async Task<IActionResult> FileDownload(string type)
22
22
  {
23
23
  /* DBからデータを取得してファイルに書き出す処理 */
24
- List<Rk033_sehn> result = new List<Rk033_sehn>();
24
+ List<seihin> result = new List<seihin>();
25
25
  string sql = "";
26
26
 
27
27
  using var transaction = _context.Database.BeginTransaction();
@@ -33,7 +33,7 @@
33
33
  //insert件数を取得
34
34
  res = _context.Database.ExecuteSqlRaw(sql);
35
35
  //getterを通じてselect処理を行う
36
- result = await _context.Rk033_sehn.ToListAsync();
36
+ result = await _context.seihin.ToListAsync();
37
37
  //トランザクションのコミット
38
38
  transaction.Commit();
39
39
  //SQLに空白処理

1

処理の概要を変更

2022/10/04 05:36

投稿

Y.Mamoru
Y.Mamoru

スコア47

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
  ### 該当のソースコード
15
15
 
16
16
  ```C#
17
- /* コントローラ内の出力処理を抜粋しています */
17
+ /* コントローラ内のファイル生成処理を抜粋しています */
18
18
 
19
19
  // GET: api/rk033/downloadFile/{type}
20
20
  [HttpGet("downloadFile/{type}")]