Files
cms_thermo_active/Step.Model/DatabaseModels/MaintenanceModel.cs
T
2018-02-13 17:25:30 +01:00

42 lines
983 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Step.Model.DatabaseModels
{
[Table("maintenance")]
public class MaintenanceModel
{
[Key]
[Column("id")]
public int MaintenanceId { get; set; }
[Column("intervall")]
public TimeSpan Intervall { get; set; }
[Column("deadline")]
public DateTime DeadLine { get; set; }
[Column("type")]
public string Type { get; set; }
[Column("counter_id")]
public int CounterId { get; set; }
[Column("creation_date")]
public DateTime CreationDate { get; set; }
public override bool Equals(object obj)
{
var item = obj as MaintenanceModel;
if (item == null)
return false;
if (item.MaintenanceId != MaintenanceId)
return false;
return true;
}
}
}