0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【保険商品管理システムの開発】自動車保険のシュミレーション画面のモデルを作成

0
Posted at
Models/AutoPremiumSimulationInput.cs
using System;

namespace InsuranceProductManager2.Models
{
    public class AutoPremiumSimulationInput
    {
        public int CustomerId { get; set; }
        public decimal CoverageAmount { get; set; }
        public string? VehicleType { get; set; }
        public string? DriverAgeCategory { get; set; }
        public int AccidentHistoryCount { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
    }
}

・シュミレーション画面で入力したデータをマッピングするモデルです。
・データ型の末尾の?はnull許容の定義であり、データがマッピングされなくてもエラーになりません。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?