Class ExperienceDto
- Namespace
- Builvero.Application.DTOs.Profile
- Assembly
- Builvero.Application.dll
Data transfer object representing a work experience entry for a user.
public class ExperienceDto
- Inheritance
-
ExperienceDto
- Inherited Members
Remarks
This DTO is used for creating and updating user work experience history. The Id field is optional for new entries and required for updates to existing entries.
Properties
Company
Gets or sets the name of the company or organization where the user worked.
public string Company { get; set; }
Property Value
- string
- Data transfer object representing a work experience entry for a user.
Remarks
This is a required field and should not be empty.
Description
Gets or sets an optional description providing additional details about the role, responsibilities, or achievements.
public string? Description { get; set; }
Property Value
- string
- Data transfer object representing a work experience entry for a user.
EndDate
Gets or sets the end date of the employment period, or null if the employment is ongoing.
public DateOnly? EndDate { get; set; }
Property Value
- DateOnly?
- Data transfer object representing a work experience entry for a user.
Remarks
If IsCurrent is true, this should typically be null or set to a future date.
Uses DateOnly to represent date-only values without time or timezone information. JSON deserialization from "YYYY-MM-DD" strings is supported in .NET 8+.
Id
Gets or sets the unique identifier of the experience entry, or null for new entries.
public Guid? Id { get; set; }
Property Value
- Guid?
- Data transfer object representing a work experience entry for a user.
Remarks
When updating an existing experience entry, this must match the ID of the entry to update. When creating a new entry, this should be null.
IsCurrent
Gets or sets a value indicating whether this experience entry represents a current or ongoing employment.
public bool IsCurrent { get; set; }
Property Value
- bool
- Data transfer object representing a work experience entry for a user.
StartDate
Gets or sets the start date of the employment period.
public DateOnly? StartDate { get; set; }
Property Value
- DateOnly?
- Data transfer object representing a work experience entry for a user.
Remarks
Uses DateOnly to represent date-only values without time or timezone information. JSON deserialization from "YYYY-MM-DD" strings is supported in .NET 8+.
Title
Gets or sets the job title or position held at the company.
public string Title { get; set; }
Property Value
- string
- Data transfer object representing a work experience entry for a user.
Remarks
This is a required field and should not be empty.