I'm facing a problem with breeze metadata. I developed a system with breeze controller. I see my model in the metadata including all navigation properties. When I fetch the data from the server I see my objects filled with the expected field, but the deserialized object on client side only includes the simple field without the collection.
I see in the metadata and the returned object from the server like following:
public partial class DesignType
{
public DesignType()
{
this.Product = new HashSet<Product>();
}
public int Id { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public virtual ICollection<Product> Product { get; set; }
public virtual VisionType Vision { get; set; }
}
public partial class VisionType
{
public VisionType()
{
this.DesignType = new HashSet<DesignType>();
}
public int Id { get; set; }
public string Name { get; set; }
public virtual ICollection<DesignType> DesignType { get; set; }
}
Here is the query code :
var query = breeze.EntityQuery.from("Designs");
breeze.manager.executeQuery(query).then(function (queryResult) {
callback(queryResult.results)
}).fail(function (queryFailed) {
error(queryFailed);
});
The results objects only contain the simple data properties and ignors the properties ICollection Product and Vision .
Any ideas. Thanks in advance...