我的写法 public class QuotaCreateOrEditViewModel { public QuotaDto LoanQuota { get; set; } public bool IsEditMode => LoanQuota.Id.HasValue; } 老程序员的写法 [AutoMapFrom(typeof(QuotaDto))] public class CreateOrEditQuotaModalViewModel : QuotaDto { public bool Is…