public class Category
{
public int Id { get; set; }
public string Name { get; set; }
}
public class Product
{
public int Id { get; set; }
public int CategoryId { get; set; }
public int ProductTypeId { get; set; }
public string Name { get; set; }
[Reference]
public Category Category { get; set; }
}
I have no idea how to pass this exception.
when that lib does reflection to get Property, it gets 2 "Name".
code doesnt know, Which one do you want. Product.Name from or Product.Category.Name.
my proposed solution is blw shoud ignore properties if it is customClass (Category which is inside of Product)
public class Product
{
public int Id { get; set; }
public int CategoryId { get; set; }
public int ProductTypeId { get; set; }
public string Name { get; set; }
/* blw should not read the properties of this customClasses */
public Category Category { get; set; }
}