Zack Yang
Zack Yang
+1 , and use @gitpullgravity 's solution worked good.
有2个问题, 1. 如果一个页面很复杂, 会导致这个 js 文件代码行数猛增. React 可以用组件的方式进行隔离, 但是这个就必须写在一个文件中了. 2. dispatch 这样直接调用方便吗? 似乎 bindAction 之后直接调用 action 更方便一点. 直接 HardCode 用来用去的很容易出错的.
Hi @jaredleechn 感谢回复, 对于第一个问题, 这种将 action / sagas / reducer 合并方式, 代码超过 1000 行可能是无法避免的, 这可能给多人开发带来一定的干扰(潜在的合并冲突). 你们这时候是怎么处理的呢? 再想想 SOLID 中的 open / close 原则, 根据这个原则来看, 是否拆分成更多的文件才是更好的解决方案呢?
@jaredleechn 也就是说, 在 dva 中, 一个 model 其实对应的只是一个 entity, 而不是一个 module 的概念对吗. 我们这边的话, 一个 model 其实对应的是一个更大的概念. 比如 Blog 系统, Article 这个模块不仅仅包含 title / content 之类的, 也包含下面所有的 Comments. 按我们现在的设计, 其实他们都是在一个模块里面的, 也就是一个...
It depends on [node-odata](https://github.com/TossShinHwa/node-odata). This project will support mysql if the [node-odata](https://github.com/TossShinHwa/node-odata) support it. for detail: https://github.com/TossShinHwa/node-odata/issues/1
Sorry, I just cook a mongoDB adapter. Maybe other DB will be support in future.
You are right. The standard $metadata is must to be support. But now, I'm focus on features support. So, I think the usability important than interoperability, at least for now....
$metadata will be the major work of the next version. (v0.8)
Great job! I will check it later. Sent from my iPhone > On May 24, 2016, at 14:41, Long Le [email protected] wrote: > > @TossShinHwa let me know if I...
@lelong37, `odata-v4-service-metadata` works well, I make a simple test for this. ``` var odata = require('node-odata'); var ServiceMetadata = require('odata-v4-service-metadata').ServiceMetadata; var server = odata('mongodb://localhost/my-app'); server.resource('books', { title: String, price: Number...