Добрый день.Я работаю с тремя проектами, у меня есть бэкэнд-приложение в одном проекте, а мои модели - в другом проекте библиотеки классов.бэкэнд связан с моими моделями.
Я использую идентификацию личности.В следующих таблицах мне нужны отношения.
![enter image description here](https://i.stack.imgur.com/QD0le.png)
public class Reserva
{
[Key]
public int IdReserva { get; set; }
public int IdCancha { get; set; }
public string Descripcion { get; set; }
[DataType(DataType.DateTime)]
[DisplayFormat(DataFormatString ="{0:dd/MMM/yyyy hh:mm tt}")]
public DateTime FechaInicio{ get; set; }
[DataType(DataType.DateTime)]
[DisplayFormat(DataFormatString = "{0:dd/MMM/yyyy hh:mm tt}")]
public DateTime FechaFin { get; set; }
}
IdentityModels.cs
public class ApplicationUser : IdentityUser
{
public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser> manager)
{
// Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
// Add custom user claims here
return userIdentity;
}
public string FirstName { get; set; }
public string LastName { get; set; }
}
У меня проблема, когдадобавив следующую строку, потому что нет ссылки на мою модель на мой бэкэнд
Reservas.cs
public virtual ApplicationUser ApplicationUser
Я хочу свою модель резервов, добавьте идентификатор пользователя
спасибо.