breezejs: navigation property is created but not filled with data

后端 未结 3 456
余生分开走
余生分开走 2021-01-22 02:18

I\'m having yet another issues with navigation properties but this time my configuration is WCF Data Service + EF.

Basically the metadata looks good, I have the referent

3条回答
  •  一向
    一向 (楼主)
    2021-01-22 02:31

    Ok, FINALLY it's working :) I am now using the latest commit of breezejs on github and this fixed my problem. In my opinion breeze via WCF never worked until now with ODATA2. The ODATA specification is clear about that:

    • ODATA V1 : collections are represented as an array
    • ODATA V2: collections are represented as an object containing an array.

    The only way I could get it to work before using the github version of breezejs, was by specifying MAX_DATA_SERVICE_VERSION to 1.0 in datajs.

    Anyway, that's all good now. I can't wait for the breeze release :) By the way it's likely I'm going to ditch OpenAccess for NHibernate. Is the NH WebAPI controller as complete as the EF WebAPI controller ?

提交回复
热议问题