I have an abstract class and another class:
public abstract class AClass
{
[Key]
public int Id { get; set; }
public string Name { get; set; }
}
public class BClass: AClass
{
public string OtherName { get; set; }
}
The abstract class have key property, but I received the next error:
Unhandled exception at line 5007, column 9 in /scripts/breeze.debug.js
0x800a138f - JavaScript runtime error: Unable to get property 'propertyRef' of undefined or null reference
Line of error:
breeze.debug.js
var keyNamesOnServer = toArray(odataEntityType.key.propertyRef).map(__pluck("name"));
The entity "BClass" doesn't contain key property, but abstract class AClass contain key property.
Please, help me with this error.