fixed registration crash

This commit is contained in:
ani_konarcheva@abv.bg
2022-04-08 18:35:17 +03:00
parent 547c6e8774
commit 6ab09ad841
9 changed files with 14 additions and 158 deletions

View File

@@ -20,6 +20,7 @@ namespace Data.Entities
public DateTime StartDate { get; set; }
[Required]
public DateTime EndDate { get; set; }
[ForeignKey("User")]
public string UserId { get; set; }
public virtual User User { get; set; }

View File

@@ -1,9 +1,11 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
namespace Data.Entities
{
@@ -16,4 +18,5 @@ namespace Data.Entities
public string PersonalNumber { get; set; }
}
}