0

我们有兴趣通过edgejs将轻风js与 nodejs 一起使用。为此,我们需要绕过 ASP.NET WebAPI。关于如何做到这一点的任何见解?看起来我们需要

  1. 使用获取元数据EFContextProvider.Metadata()并转换为 JSON(使用JsonFormatter?)
  2. IQueryable<EntityType>适当的方式进行查询。这个合适的形状是什么?查询实际上是如何执行的?
  3. EFContextProvider.SaveChanges使用从客户端检索到的 JSON 对象保存更改。(使用JsonFormatter?)

关于如何做到这一点有什么想法吗?我们缺少什么吗?

4

1 回答 1

1

We will be releasing a Node/Express/Mongo Db sample and adapters within the next couple of weeks. Some of the code from this work should be illustrative in trying to accomplish what you want.

Prior to that, your best bet is to look at the Breeze.WebApi source. Most of this code is NOT WebApi specific and you may be able to refactor it. This is something that we will be looking at doing ourselves at some point in the future when we implement a ServiceStack alternative to WebApi.

于 2013-07-03T00:48:51.620 回答