using _0_Framework.Domain; using Company.Domain.WorkshopAgg; namespace Company.Domain.InsuranceAgg; public class Insurance : EntityBase { public Insurance(int year, int month, string employerStr, string workShopStr, long workShopId, string address, string listNumber) { Year = year; Month = month; EmployerStr = employerStr; WorkShopStr = workShopStr; WorkShopId = workShopId; Address = address; ListNumber = listNumber; } public int Year { get; private set; } public int Month { get; private set; } public string EmployerStr { get; private set; } //نام کارفرما public string WorkShopStr { get; private set; } //نام کارگاه public long WorkShopId { get; private set; } //Id کارگاه public string Address { get; private set; } public string ListNumber { get; private set; } public Workshop Workshop { get; private set; } public Insurance() { } public void Edit(int year, int month, string employerStr, string workShopStr, long workShopId, string address, string listNumber) { Year = year; Month = month; EmployerStr = employerStr; WorkShopStr = workShopStr; WorkShopId = workShopId; Address = address; ListNumber = listNumber; } }