1月19日(月)1コマ目

 今日、やったこと

[練習問題]ASP.NET Core MVC + LINQ 第1段階~第4段階

今日のホワイトボード

練習問題の正解例をあげておきます。

[練習問題]ASP.NET Core MVC + LINQ 第1段階

[Model]Models/Area.cs


[Model]Models/WeatherData.cs


[Model]Models/WeatherDataViewModel.cs


[Model]Data/WeatherDataDbContext.cs


[Controller]Controllers/WeatherDataController.cs


[View]Views/WeatherData/Index.cshtml


[練習問題]ASP.NET Core MVC + LINQ 第2段階

[Model]Models/Area.cs

コンストラクタを追加。


[Model]Models/WeatherData.cs

第1段階と同じ。


[Model]Models/WeatherDataViewModel.cs

最低気温・最高気温用プロパティを追加。


[Model]Data/WeatherDataDbContext.cs

第1段階と同じ。


[Controller]Controllers/WeatherDataController.cs

観測地で最低気温・最高気温を検索する機能を追加。


[View]Views/WeatherData/Index.cshtml

観測地で最低気温・最高気温を検索する機能を追加。


[練習問題]ASP.NET Core MVC + LINQ 第3段階

[Model]Models/Area.cs

第2段階と同じ。


[Model]Models/WeatherData.cs

第1段階と同じ。


[Model]Models/TempData.cs

観測地の最低気温、最高気温を受け渡しするためのクラス。


[Model]Models/WeatherDataViewModel.cs

各観測地の最低気温・最高気温のリストのプロパティを追加。


[Model]Data/WeatherDataDbContext.cs

第1段階と同じ。


[Controller]Controllers/WeatherDataController.cs

観測地ごとの最低気温・最高気温を取得する機能を追加。


[View]Views/WeatherData/Index.cshtml

観測地ごとの最低気温・最高気温を取得する機能を追加。


[練習問題]ASP.NET Core MVC + LINQ 第4段階

[Model]Models/Area.cs

第2段階と同じ。


[Model]Models/WeatherData.cs

第1段階と同じ。


[Model]Models/TempData.cs

第3段階と同じ。


[Model]Models/Count.cs

平均気温が指定日数以上の観測地および日数を受け渡すためのクラス。


[Model]Models/WeatherDataViewModel.cs

平均気温が指定日数以上の観測地のプロパティを追加。


[Model]Data/WeatherDataDbContext.cs

第1段階と同じ。


[Controller]Controllers/WeatherDataController.cs

平均気温が指定日数以上の観測地および日数を取得する機能を追加。


[View]Views/WeatherData/Index.cshtml

平均気温が指定日数以上の観測地および日数を取得する機能を追加。


次回は

確認テストをします。


このブログの人気の投稿

10月27日(月)1コマ目

1月26日(月)1、2コマ目