Hi,
I have an issue with Breeze while using some EF abstract classes - there's an exception while parsing metadata on client side. Here's a simple model example that recreates this issue:
public abstract class Item
{
[Key]
public int Id { get; set; }
public string Foo { get; set; }
}
public class SpecificItem : Item
{
public int Bar { get; set; }
}
Problem starts while Breeze is trying to use undefined 'key' property for SpecificItem type in convertFromODataEntityType function (line 1251: var keyNamesOnServer = toArray(odataEntityType.key.propertyRef).map(core.pluck("name"));). Not only odataEntityType param lacks information about 'key' but also there is no information about other properties from base class (Item in this scenario).
Is there any support planned for abstract models in future? Also... Can we get any hint how to handle such scenarios atm? - we want to keep our model the way it is now, so even some ugly, temporary workaround for Breeze would be great!
Keep up the good work! ;)
~ Tomasz