Changing for make everything work again

This commit is contained in:
2018-12-14 18:02:30 +01:00
parent 191daf8218
commit 5bdc0dcba7
8 changed files with 20 additions and 17 deletions

View File

@@ -1,18 +1,19 @@
using LinqToDB.Mapping;
using Microsoft.AspNetCore.Identity;
using Newtonsoft.Json;
namespace SeniorAssistant.Models
{
public class User : IHasUsername
{
[PrimaryKey]
[NotNull]
[Column(IsPrimaryKey = true, CanBeNull = false)]
public string Username { get; set; }
[NotNull]
public string Email { get; set; }
[NotNull]
[JsonIgnore]
public string Password { get; set; }
[NotNull]