0

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.

4

1 回答 1

1

Edit: As of v 1.3.1 Breeze now DOES support inheritance.

Breeze does not yet support inheritance, but it is on our roadmap. Please vote for this feature on the Breeze User Voice to indicate that you feel that it is important. We take this venue very seriously in prioritizing which features we add next.

于 2013-04-16T17:26:37.120 回答