Files
chapter-organizer/Core/Entities/EventOccurrence.cs
T
poprhythm 3a809f18a6 Add EventOccurrence entity and update DbContext
Created the EventOccurrence entity with properties for event details and added it to the AppDbContext. Updated the model snapshot to reflect the new entity and its relationships, ensuring proper database schema generation.
2025-12-27 15:59:48 -05:00

28 lines
698 B
C#

namespace Core.Entities
{
public class EventOccurrence
{
public int Id { get; set; }
public int? EventDefinitionId { get; set; }
public string? SpecialEventType { get; set; }
public string Name { get; set; } = null!;
public string Time { get; set; } = null!;
public string Date { get; set; } = null!;
public DateTime StartTime { get; set; }
public DateTime? EndTime { get; set; }
public string? Location { get; set; }
// Navigation property
public EventDefinition? EventDefinition { get; set; }
public bool SignupSubmitPickup =>
Name.Contains("Sign-up") ||
Name.Contains("Submit") ||
Name.Contains("Submission") ||
Name.Contains("Pick-up");
}
}