using System.Collections.Generic; using _0_Framework.Domain; using Company.Domain.InsuranceJobItemAgg; namespace Company.Domain.InsurancJobAgg; public class InsuranceJob : EntityBase { public InsuranceJob(string insuranceJobTitle, long yearlySalaryId, string economicCode, string year) { InsuranceJobTitle = insuranceJobTitle; YearlySalaryId = yearlySalaryId; EconomicCode = economicCode; Year = year; } public InsuranceJob() { InsuranceJobItemList = new List(); } public string InsuranceJobTitle{ get; private set; } public long YearlySalaryId { get; private set; } public string EconomicCode { get; private set; } public string Year { get; private set; } public List InsuranceJobItemList { get; set; } public void Edit(string insuranceJobTitle, long yearlySalaryId, string economicCode, string year) { InsuranceJobTitle = insuranceJobTitle; YearlySalaryId = yearlySalaryId; EconomicCode = economicCode; Year = year; } }