- aggiunto un po di tutto comeil progetto del prof
This commit is contained in:
2018-09-14 19:38:02 +02:00
parent 05ce84a07a
commit c807c474c4
9698 changed files with 748393 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
using LinqToDB.Mapping;
using System;
namespace SeniorAssistant.Models
{
public class Heartbeat : IHasTime
{
[PrimaryKey]
[NotNull]
public string Username { get; set; }
[PrimaryKey]
[NotNull]
public DateTime Time { get; set; }
[Association(ThisKey = nameof(Username), OtherKey = nameof(User.Username), CanBeNull = false)]
public User user { get; set; }
public double Value { get; set; }
}
}