【发布时间】:2012-11-29 00:14:53
【问题描述】:
我将如何对仅使用 服务器的元数据来定义模型?上下文是否仍然存在 能够处理对非 Web api 服务的 crud 操作吗?
见过
// service name is route to the Web API controller var serviceName = 'api/CarBones'; /*** dataservice proper ***/ // manager (aka context) is the service gateway and cache holder var manager = new entityModel.EntityManager(serviceName);我可以用 oData uri 替换 serviceName 吗? 然后像往常一样继续使用微风?
var serviceName = "http://localhost:1234/Northwind.svc"感谢您的帮助!
此问题由 jpirok 在我们的 IdeaBlade 论坛上发布。我在这里重新发布问题和答案,因为我认为它对 Breeze Stack Overflow 社区有用。
【问题讨论】: