I have two classes:
public class Produto
{
public int ProCodigo { get; set; }
public string ProNome { get; set; }
public int DepCodigo { get; set; }
public virtual Departamento Departamento { get; set; }
}
public class Departamento
{
public int DepCodigo { get; set; }
public string DepNome { get; set; }
}
If I make two lists: one of products (where the department object inside the product is empty) and another one of departments, is it possible to relate them? For example, create another list of products with the department objects within the product?
Thank you!