Your goal is to build a simple controller that will know which model and function to run, and then return a JSON object as a response that is usable on the far end of the transaction.
您的目标是构建这样一个简单的控制器:它知道应该运行哪个模型和函数,然后返回一个JSON对象作为响应,这个响应可用于事务的远端。
One must therefore take into account both the expected return type and the data model when deciding how to cast the object that this method returns.
因此在决定如何对该方法的返回值进行强制类型转换时,必须同时考虑预期的返回类型和所用的数据模型。
The call that creates a model is, however, a stored procedure that does not have any return value.
不过,创建模型的调用是一个不具有任何返回值的存储过程。
In case the user's choice of news type was invalid, the model would return an error code, rather than the headlines.
在用户选择的新闻类型无效的情况下,模型将返回一个错误代码,而不是返回标题。
The business delegate component invokes the service and wraps any return value as a model object.
业务委派组件调用该服务,并将任何返回值打包为模型对象。
The formatter override can then return that extended model information.
然后,此格式化程序覆盖就能返回所扩展的模型信息。
By raising sealevels, and therefore the grounding line, in their model, Katz's teamwere able to find the point of no return beyond which the glacier wouldbe unable to recover.
海平面上升,因此在模型中地平线也会上升,卡兹的团队发现存在一个临界点,如果冰川超过该点便无法恢复到从前的状态。
Customers who have ordered the model could get full refund if they intend to return the car.
如果那些预定了这款车型的顾客们想退回这款车,那么他们可以获得全额退款。
This arguably points to the need to always model return values in your sequence diagrams.
这可能证明为什么总是需要在序列图为返回值建模。
Managed care will return. This is the model whereby doctors work for the insurer, which pays them to keep people well.
保险公司为医生的医疗付费,医生为保险公司工作的管理式医疗将回归。
For instance, QEMU's emulated hard disks return a model string of "QEMU HARDDISK" rather than a real hard disk manufacturer and model.
例如,QEMU的模拟硬盘会返回“QEMUHARDDISK”的模式字符串,与真实的硬盘驱动器不同。
However, issuing the following query, based on an index defined with the custom document model in Figure 5, will return no results, although the same part of the document is referenced.
但是,根据用图5的定制文档模型定义的索引,执行以下查询却不返回结果,尽管引用了文档的相同部分。
A "Test Sample" run should return a table with the clusters of the model, as shown in Figure 7.
“TestSample”运行后应该返回一个表,其中包含模型中的集群,如图7所示。
The employee model is bound in return to the form fields.
返回来,employee模型将绑定到表单字段。
Using the Processing model, the draw function calls update to apply the rules; upon return, draw emits the updated space to the display window.
使用Processing模型,draw函数调用update以应用规则;返回后,draw将这个更新了的空间发到显示窗口。
Django USES the model to generate and execute SQL statements in the database, which in turn return a result.
Django使用模型在数据库中生成和执行sql语句,反过来,这些sql语句会返回一个结果。
Let's return to the family model example from Listing 1 and look at different ways in which you can interrogate it, as shown in Listing 2.
我们返回清单1的家庭模型,看一下可以查询它的不同方法,如清单2所示。
The return value -- here stored in the $rss variable -- does not point to the entire document, as you might expect from experience with other APIs such as the Document Object Model (DOM).
返回值(这里存储在 $rss变量中)并没有指向整个文档,如果使用过其他API如文档对象模型(DOM)您可能会这样期望。
Enter the SQL code to return the clusters from the model, where IDMMX.OUTLIERMODEL is the name of the clustering model generated during the "find deviations" run.
输入SQL代码,以返回模型中的集群,其中IDMMX .OUTLIERMODEL是“finddeviations”运行期间生成的集群模型的名称。
As such, inconsistencies in the model will cause build failures. For example, an EOperationImpl may declare a certain return type, but the return ref property may refer to a different type or be null.
所以,模型中的不一致性将会导致构建失败,例如,一个EOperationImpl可以声明某种返回类型,但是Returnref属性可以引用不同的类型或者为空。
Since all the cases are already present in the model, we can return to this view after we finish with the Search Items case and continue to model the next use case.
由于所有的用例都已经显示在模型中,在结束SearchItems用例后我们可以返回到这个视图,并接着为下一个用例建模。
Today, that model has warped into self-parody: many of the Banks' assets are unsellable even as they have to return to the market each day to ask for lenders to vote on their survival.
如今这种模式已经扭曲成了滑稽的自我模仿:很多银行资产都没有销路,正如他们每天都必须回到市场上央求贷款者帮助他们存活下去。
Based on this metadata model, we can now perform a query that would return all of the users that are currently holding systems.
基于这一元数据模型,我们现在可以执行查询,返回当前控制着系统的所有用户。
After several years, the inner-belt electron density would return to normal, the model suggests.
该模型显示,几年后,内部辐射带的电子密度将回到正常值。
To put the model in simple economic terms, its search results give away, say, $1 in value, and in return (thanks to the user’s clicks) it gets 1 cent back.
换用简单的经济学表达来说,其搜索结果产生出1美元的价值,而其收益(感谢用户的单击)却只是1美分。
Wealth managers - as private Banks are increasingly called - have shifted away from the brokerage model of selling a range of products in return for commissions.
财富管理公司——越来越多的人如此称呼私人银行——已放弃了以出售一系列产品来获取佣金的经纪模式。
The synchronous call-and-return model is the standard form for writing code in most programming languages.
同步的“调用-返回”模型是用绝大多数编程语言编写代码的标准形式。
The primary benefit of a thin client architecture model is deployment ease -- by changing the source in one location (the server), users are instantly upgraded when they return to the application.
瘦客户机架构模式的最大优点是部署简便 ——只需在一个位置(服务器)更改源代码,在用户再次使用应用程序时,就可以立即完成升级。
The primary benefit of a thin client architecture model is deployment ease -- by changing the source in one location (the server), users are instantly upgraded when they return to the application.
瘦客户机架构模式的最大优点是部署简便 ——只需在一个位置(服务器)更改源代码,在用户再次使用应用程序时,就可以立即完成升级。
应用推荐