+ Inizio del register

This commit is contained in:
DawitG96
2018-12-14 16:39:45 +01:00
parent 1739314aef
commit 191daf8218
14 changed files with 139 additions and 44 deletions

View File

@@ -7,14 +7,12 @@ namespace SeniorAssistant.Models
{
[PrimaryKey]
[NotNull]
[Association(ThisKey = nameof(Username), OtherKey = nameof(User.Username), CanBeNull = false)]
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; }
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SeniorAssistant.Models
{
public class Register
{
public string Username { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public bool Doctor { get; set; }
}
}

View File

@@ -7,14 +7,12 @@ namespace SeniorAssistant.Models
{
[PrimaryKey]
[NotNull]
[Association(ThisKey = nameof(Username), OtherKey = nameof(User.Username), CanBeNull = false)]
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 long Value { get; set; }
}

View File

@@ -7,15 +7,13 @@ namespace SeniorAssistant.Models
{
[PrimaryKey]
[NotNull]
[Association(ThisKey = nameof(Username), OtherKey = nameof(User.Username), CanBeNull = false)]
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 long Value { get; set; }
}
}

View File

@@ -10,6 +10,17 @@ namespace SeniorAssistant.Models
public string Username { get; set; }
[NotNull]
public string Email { get; set; }
[NotNull]
public string Password { get; set; }
[NotNull]
public bool Doctor { get; set; }
public string Name { get; set; }
public string LastName { get; set; }
}
}