/// <summary> /// Converts this instance of <see cref="BadgeType"/> to an instance of <see cref="BadgeTypeDTO"/>. /// </summary> /// <param name="entity"><see cref="BadgeType"/> to convert.</param> public static BadgeTypeDTO ToDTO(this BadgeType entity) { if (entity == null) { return(null); } var dto = new BadgeTypeDTO(); dto.ID = entity.ID; dto.Code = entity.Code; dto.Name = entity.Name; dto.CreatedByUserID = entity.CreatedByUserID; dto.CreatedDate = entity.CreatedDate; dto.ModifiedByUserID = entity.ModifiedByUserID; dto.ModifedDate = entity.ModifedDate; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="BadgeTypeDTO"/> to an instance of <see cref="BadgeType"/>. /// </summary> /// <param name="dto"><see cref="BadgeTypeDTO"/> to convert.</param> public static BadgeType ToEntity(this BadgeTypeDTO dto) { if (dto == null) { return(null); } var entity = new BadgeType(); entity.ID = dto.ID; entity.Code = dto.Code; entity.Name = dto.Name; entity.CreatedByUserID = dto.CreatedByUserID; entity.CreatedDate = dto.CreatedDate; entity.ModifiedByUserID = dto.ModifiedByUserID; entity.ModifedDate = dto.ModifedDate; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="BadgeType"/> converted from <see cref="BadgeTypeDTO"/>.</param> static partial void OnEntity(this BadgeTypeDTO dto, BadgeType entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="BadgeTypeDTO"/> converted from <see cref="BadgeType"/>.</param> static partial void OnDTO(this BadgeType entity, BadgeTypeDTO dto);
public bool UpdateBadgeType(int badgeTypeID, BadgeTypeDTO badgeTypeDTO) { throw new NotImplementedException(); }
public int CreateBadgeType(BadgeTypeDTO badgeTypeDTO) { throw new NotImplementedException(); }