/// <summary> /// Converts this instance of <see cref="BadgeTypeBadgeHistory"/> to an instance of <see cref="BadgeTypeBadgeHistoryDTO"/>. /// </summary> /// <param name="entity"><see cref="BadgeTypeBadgeHistory"/> to convert.</param> public static BadgeTypeBadgeHistoryDTO ToDTO(this BadgeTypeBadgeHistory entity) { if (entity == null) { return(null); } var dto = new BadgeTypeBadgeHistoryDTO(); dto.ID = entity.ID; dto.BadgeTypeID = entity.BadgeTypeID; dto.BadgeID = entity.BadgeID; dto.ModifedByUserID = entity.ModifedByUserID; dto.ModifiedDate = entity.ModifiedDate; dto.AuditDate = entity.AuditDate; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="BadgeTypeBadgeHistoryDTO"/> to an instance of <see cref="BadgeTypeBadgeHistory"/>. /// </summary> /// <param name="dto"><see cref="BadgeTypeBadgeHistoryDTO"/> to convert.</param> public static BadgeTypeBadgeHistory ToEntity(this BadgeTypeBadgeHistoryDTO dto) { if (dto == null) { return(null); } var entity = new BadgeTypeBadgeHistory(); entity.ID = dto.ID; entity.BadgeTypeID = dto.BadgeTypeID; entity.BadgeID = dto.BadgeID; entity.ModifedByUserID = dto.ModifedByUserID; entity.ModifiedDate = dto.ModifiedDate; entity.AuditDate = dto.AuditDate; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="BadgeTypeBadgeHistory"/> converted from <see cref="BadgeTypeBadgeHistoryDTO"/>.</param> static partial void OnEntity(this BadgeTypeBadgeHistoryDTO dto, BadgeTypeBadgeHistory entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="BadgeTypeBadgeHistoryDTO"/> converted from <see cref="BadgeTypeBadgeHistory"/>.</param> static partial void OnDTO(this BadgeTypeBadgeHistory entity, BadgeTypeBadgeHistoryDTO dto);