Files
2024-08-26 11:40:08 +02:00

28 lines
862 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EgwCoreLib.Razor.Data
{
public class CalendarEvent
{
public int id { get; set; } = 0;
public DateTime Inizio { get; set; } = DateTime.Today.AddHours(8);
public DateTime Fine { get; set; } = DateTime.Today.AddHours(10);
[NotMapped]
public double Durata
{
get => Fine.Subtract(Inizio).TotalMinutes;
}
public string CssClass { get; set; } = "";
public string Title { get; set; } = "";
public string Description { get; set; } = "";
public string Icon { get; set; } = "";
public string Type { get; set; } = "";
public string ToolTip { get; set; } = "";
}
}