Does Breeze work with Table Per Hierarchy (TPH)

廉价感情. 提交于 2020-01-25 00:38:06

问题


I'm trying to plug BreezeJs into an existing datastructure and getting an error in the meta data fetch. I can replicate this by adding the following to the CarBones sample

namespace CarBones.Models
{
  public abstract class VanBase
  {
    public int Id { get; set; }
    public string Manufacturer { get; set; }
    public int Wheels { get; set; }
  }

  public class BasicVan : VanBase
  {

  }

  public class LiveriedVan : VanBase
  {
    public string Livery { get; set; }
  }
}

then in the context

 public DbSet<VanBase> Vans { get; set; }

This is enough to trigger

Uncaught TypeError: Cannot read property 'propertyRef' of undefined breeze.debug.js 5224

Can I not use TPH in this way with Breeze? Yet?


回答1:


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

Breeze does not yet support inheritance. It is on our list though, so please vote for it on the Breeze User Voice here so that we can correctly prioritize the variously requested additional breeze features. We take this venue very seriously.



来源:https://stackoverflow.com/questions/14485889/does-breeze-work-with-table-per-hierarchy-tph

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!