Class Experience
Represents a work experience entry for a user, documenting their professional employment history.
public class Experience
- Inheritance
-
Experience
- Inherited Members
Remarks
Users can have multiple experience entries to represent their complete work history. Each entry includes the company, job title, employment dates, and optional description of responsibilities or achievements.
Properties
Company
Gets or sets the name of the company or organization where the user worked.
public string Company { get; set; }
Property Value
- string
- Represents a work experience entry for a user, documenting their professional employment history.
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
- Represents a work experience entry for a user, documenting their professional employment history.
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?
- Represents a work experience entry for a user, documenting their professional employment history.
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. This matches the domain semantics where employment dates are calendar dates, not instants.
Id
Gets or sets the unique identifier for this experience entry.
public Guid Id { get; set; }
Property Value
- Guid
- Represents a work experience entry for a user, documenting their professional employment history.
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
- Represents a work experience entry for a user, documenting their professional employment history.
StartDate
Gets or sets the start date of the employment period.
public DateOnly? StartDate { get; set; }
Property Value
- DateOnly?
- Represents a work experience entry for a user, documenting their professional employment history.
Remarks
Uses DateOnly to represent date-only values without time or timezone information. This matches the domain semantics where employment dates are calendar dates, not instants.
Title
Gets or sets the job title or position held at the company.
public string Title { get; set; }
Property Value
- string
- Represents a work experience entry for a user, documenting their professional employment history.
Remarks
This is a required field and should not be empty.
User
Gets or sets the user this experience entry belongs to.
public User User { get; set; }
Property Value
- User
- Represents a work experience entry for a user, documenting their professional employment history.
UserId
Gets or sets the unique identifier of the user this experience entry belongs to.
public Guid UserId { get; set; }
Property Value
- Guid
- Represents a work experience entry for a user, documenting their professional employment history.