/// <summary> /// Converts this instance of <see cref="ClassType"/> to an instance of <see cref="ClassTypeDTO"/>. /// </summary> /// <param name="entity"><see cref="ClassType"/> to convert.</param> public static ClassTypeDTO ToDTO(this ClassType entity) { if (entity == null) return null; var dto = new ClassTypeDTO(); dto.ClassTypeID = entity.ClassTypeID; dto.Name = entity.Name; dto.Code = entity.Code; dto.Description = entity.Description; entity.OnDTO(dto); return dto; }
public TypeCodeDTO(Int32 typeCodeID, String name, String code, String description, Int32 classTypeID, Nullable<Int32> parentTypeCodeID, List<AddressDTO> addresses, List<BusinessDTO> businesses, List<BusinessUserMapDTO> businessUserMaps, ClassTypeDTO classType, List<EmailDTO> emails, List<JobApplicationStateDTO> jobApplicationStates, List<JobDTO> jobs, List<TypeCodeDTO> typeCodes1, TypeCodeDTO typeCode1, List<PhoneDTO> phones) { this.TypeCodeID = typeCodeID; this.Name = name; this.Code = code; this.Description = description; this.ClassTypeID = classTypeID; this.ParentTypeCodeID = parentTypeCodeID; this.Addresses = addresses; this.Businesses = businesses; this.BusinessUserMaps = businessUserMaps; this.ClassType = classType; this.Emails = emails; this.JobApplicationStates = jobApplicationStates; this.Jobs = jobs; this.TypeCodes1 = typeCodes1; this.TypeCode1 = typeCode1; this.Phones = phones; }
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="ClassTypeDTO"/> converted from <see cref="ClassType"/>.</param> static partial void OnDTO(this ClassType entity, ClassTypeDTO dto);
public TypeCodeDTO(Int32 typeCodeID, String name, String code, String description, Int32 classTypeID, Nullable <Int32> parentTypeCodeID, List <AddressDTO> addresses, List <BusinessDTO> businesses, List <BusinessUserMapDTO> businessUserMaps, ClassTypeDTO classType, List <EmailDTO> emails, List <JobApplicationStateDTO> jobApplicationStates, List <JobDTO> jobs, List <TypeCodeDTO> typeCodes1, TypeCodeDTO typeCode1, List <PhoneDTO> phones) { this.TypeCodeID = typeCodeID; this.Name = name; this.Code = code; this.Description = description; this.ClassTypeID = classTypeID; this.ParentTypeCodeID = parentTypeCodeID; this.Addresses = addresses; this.Businesses = businesses; this.BusinessUserMaps = businessUserMaps; this.ClassType = classType; this.Emails = emails; this.JobApplicationStates = jobApplicationStates; this.Jobs = jobs; this.TypeCodes1 = typeCodes1; this.TypeCode1 = typeCode1; this.Phones = phones; }