1
How to Model a Relationship of 1:N, where, 1 user may have several requests, and in this request we have reference to another entity? Ex:
public class Usuario
{
public int UsuarioId { get; set; }
public string Name {get; set; }
public ICollection<Pedido> Pedidos {get; set;}
}
public class Pedido
{
public int PedidoId { get; set; }
public DateTime PedidoDate {get; set;}
public ICollection<Produto> Produtos {get; set;}
}
public class Produto
{
public int ProdutoId {get; set;}
public string ProdutoNome {get; set;}
}
Obs: Using the resource Fluent Api mapped...
I didn’t get that part: "and in this request we have reference to another entity?"
– Randrade