✅ Multiple one to many relationships

I've just recently started using ASP.NET and I ran into a bit of a wall
Basically:
    public class Reserva
    {
        public int Id { get; set; }

        public string ClienteId { get; set; }
        public ApplicationUser Cliente { get; set; }

        public string FuncionarioId { get; set; }
        public ApplicationUser Funcionario { get; set; }
    }

    public class ApplicationUser : IdentityUser
    {
        public Empresa? Empresa { get; set; }
        public ICollection<Reserva> Reservas { get; set; }
        public ICollection<Reserva> EntregasRecolhas { get; set; }

    }


How do I make a migration of this? I'm getting "Unable to determine the relationship represented by navigation 'ApplicationUser.EntregasRecolhas' of type 'ICollection<Reserva>'. Either manually configure the relationship, or ignore this property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'."
And I don't know how to proceed without having to manually do it ( which I don't know how to do it either )
Was this page helpful?