Changing for make everything work again
This commit is contained in:
@@ -7,7 +7,6 @@ namespace SeniorAssistant.Models
|
||||
{
|
||||
[PrimaryKey]
|
||||
[NotNull]
|
||||
[Association(ThisKey = nameof(Username), OtherKey = nameof(User.Username), CanBeNull = false)]
|
||||
public string Username { get; set; }
|
||||
|
||||
[PrimaryKey]
|
||||
@@ -15,5 +14,10 @@ namespace SeniorAssistant.Models
|
||||
public DateTime Time { get; set; }
|
||||
|
||||
public double Value { get; set; }
|
||||
|
||||
/*
|
||||
[Association(ThisKey = nameof(Username), OtherKey = nameof(User.Username), CanBeNull = false)]
|
||||
public User UserObj { get; set; }
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace SeniorAssistant.Models
|
||||
{
|
||||
[PrimaryKey]
|
||||
[NotNull]
|
||||
[Association(ThisKey = nameof(Username), OtherKey = nameof(User.Username), CanBeNull = false)]
|
||||
public string Username { get; set; }
|
||||
|
||||
[PrimaryKey]
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace SeniorAssistant.Models
|
||||
{
|
||||
[PrimaryKey]
|
||||
[NotNull]
|
||||
[Association(ThisKey = nameof(Username), OtherKey = nameof(User.Username), CanBeNull = false)]
|
||||
public string Username { get; set; }
|
||||
|
||||
[PrimaryKey]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user