Class EventTemplate
Represents a template for creating events with predefined settings and configurations.
Inheritance
EventTemplate
Assembly: OEMS.Core.dll
Syntax
public class EventTemplate
Properties
ArchiveDate
Declaration
public DateTime? ArchiveDate { get; set; }
Property Value
CategoryId
Gets or sets the identifier of the event category for this template.
Declaration
[Required]
public Guid CategoryId { get; set; }
Property Value
Type |
Description |
Guid |
The GUID of the category that events created from this template will belong to.
|
CreationDate
Declaration
[Required]
public DateTime CreationDate { get; set; }
Property Value
Creator
Declaration
[ForeignKey("CreatorId")]
public virtual User Creator { get; set; }
Property Value
CreatorId
Declaration
[Required]
public Guid CreatorId { get; set; }
Property Value
CurrentParticipants
Declaration
[Required]
public int CurrentParticipants { get; set; }
Property Value
Description
Gets or sets the default description for events created from this template.
Declaration
public string Description { get; set; }
Property Value
Type |
Description |
string |
The event description text providing details about the event.
|
EndDateTime
Gets or sets the default end date and time for events created from this template.
Declaration
[Required]
public DateTime EndDateTime { get; set; }
Property Value
Type |
Description |
DateTime |
The default end timestamp for template-based events.
|
EventCategory
Declaration
[ForeignKey("CategoryId")]
public virtual EventCategory EventCategory { get; set; }
Property Value
EventFiles
Declaration
public virtual ICollection<EventFile> EventFiles { get; set; }
Property Value
EventParticipations
Declaration
public virtual ICollection<EventParticipation> EventParticipations { get; set; }
Property Value
EventProcesses
Declaration
public virtual ICollection<EventProcess> EventProcesses { get; set; }
Property Value
Feedbacks
Declaration
public virtual ICollection<Feedback> Feedbacks { get; set; }
Property Value
Group
Declaration
[ForeignKey("GroupId")]
public virtual Group Group { get; set; }
Property Value
GroupId
Gets or sets the optional identifier of the group for group-specific event templates.
Declaration
public Guid? GroupId { get; set; }
Property Value
Type |
Description |
Guid? |
The GUID of the group, or null if this is not a group-specific template.
|
Id
Gets or sets the unique identifier for the event template.
Declaration
[Key]
public Guid Id { get; set; }
Property Value
Type |
Description |
Guid |
A GUID that uniquely identifies the template.
|
IsGroupEvent
Declaration
[Required]
public bool IsGroupEvent { get; set; }
Property Value
Location
Declaration
[ForeignKey("LocationId")]
public virtual Location Location { get; set; }
Property Value
LocationId
Declaration
[Required]
public Guid LocationId { get; set; }
Property Value
MaxParticipants
Declaration
[Required]
public int MaxParticipants { get; set; }
Property Value
Organization
Declaration
[ForeignKey("OrganizationId")]
public virtual Organization Organization { get; set; }
Property Value
OrganizationId
Gets or sets the identifier of the organization that owns this template.
Declaration
[Required]
public Guid OrganizationId { get; set; }
Property Value
Type |
Description |
Guid |
The GUID of the organization that created and owns this template.
|
StartDateTime
Gets or sets the default start date and time for events created from this template.
Declaration
[Required]
public DateTime StartDateTime { get; set; }
Property Value
Type |
Description |
DateTime |
The default start timestamp for template-based events.
|
Status
Declaration
[Required]
public EventStatus Status { get; set; }
Property Value
Title
Gets or sets the default title for events created from this template.
Declaration
[Required]
[StringLength(200)]
public string Title { get; set; }
Property Value
Type |
Description |
string |
The event title, limited to 200 characters.
|