Cosen
Cosen
CC#
Created by Cosen on 11/12/2023 in #help
✅ EntityFramework: Navigation property makes a nested object call
thanks this actually worked! I made changes to my transport dto and included
public CategoriesDto categories { get; set; }
public CategoriesDto categories { get; set; }
So my final transport dto is
public class TransportsDto
{
public int transport_id { get; set }
public int category_id { get; set; }
public CategoriesDto categories { get; set; }
public string name { get; set; }
public class TransportsDto
{
public int transport_id { get; set }
public int category_id { get; set; }
public CategoriesDto categories { get; set; }
public string name { get; set; }
7 replies
CC#
Created by Cosen on 11/12/2023 in #help
✅ EntityFramework: Navigation property makes a nested object call
i am also using dto when returning a single category : (not sure if this even matters here)
public class CategoriesDto
{
public int category_id { get; set; }

public string name { get; set; }

}
public class CategoriesDto
{
public int category_id { get; set; }

public string name { get; set; }

}
7 replies