+ Inizio del register
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
15
SeniorAssistant/Models/Register.cs
Normal file
15
SeniorAssistant/Models/Register.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user