下面的代码将添加上图中的所有外键链接。
This next section of code adds all of the foreign key links seen in the previous diagram.
在这种情况下,通常最好将代码重构为一个用户定义的函数,键映射随后就可以调用该函数。
In such cases, it's usually a good idea to refactor the code out into a user-defined function, which the key-mapping can then call.
如果您按照这个方式调用键不安全的函数,那么粘合代码将能够识别具体的情况,并帮助您对其进行相应处理。
If you call out this way to key-unsafe functions, the glue code recognizes the situation and takes care of it for you.
然后按下enter键,接下来在下面的行中输入以下代码。
Then, press the Enter key. Next, type this code on the following line.
它确实对于值和键长度有一些限制,但可以在代码中轻松地调整那些限制。
It does have some limitations on value and key lengths, but those are easily adjustable in the code.
哈希函数必须始终为相同的键返回相同的哈希代码。
A hash function must always return the same hash code for the same key.
哈希函数是基于键返回数值哈希代码的算法。
A hash function is an algorithm that returns a numeric hash code based on a key.
指定扩展键标志,事件注入标志,上下文代码,转换状态码。
Specifies the extended-key flag, event-injected flag, context code, and transition-state flag.
事件可由用户操作(如单击鼠标或按某个键)、程序代码或系统生成。
Events can be generated by a user action, such as clicking the mouse or pressing a key; by program code; or by the system.
提供可以用于查看现有键绑定的代码。
Provides code that enables you to view the existing key bindings.
下面的例子显示你按下的键的字符和键代码值。
The following example shows the character and key code values for the keys you press.
在这几行代码之后,脚本将一个简单产品目录定义为一个数组,以数组键为SKUs,而对应的值存放产品信息。
Following this code, the script defines a simple product catalog as an array, with the array keys as SKUs and the corresponding values holding product information.
清单15.key - up事件处理程序中处理upArrow和Down arrow键的代码片段。
Listing 15. Code fragment of the key-up event handler for handling the up Arrow and Down Arrow keys.
通常,调用规则的代码需要确保会话中存在对应于预期键的对象。
It is generally up to the code calling the rule to make sure that the object exists on the session at the expected key.
当我决定使用 acmecorp.biz/geotweet 之类的URL将得到的代码移动到生产环境中时,我将需要生成另一个键。
When I decide to move the resulting code into production — with a URL like acmecorp.biz/geotweet — I'll need to generate another key.
每行包含下订单的客户键、订单的总价值、下订单的日期、描述订单优先次序的代码。
Each row also contains the customer key that placed the order, the total value of the order, the date the order was placed, and a code describing its priority.
您的代码获取它需要的图像描述符,然后将其添加到图像注册表,并使用键为每个图像描述符建立索引。
The idea is that your code obtains the image descriptors it needs and adds them to the image registry, indexing each one with a key.
接下来的两个代码清单将处理当前的键释放时间并查找与现有签名的匹配。
The next two code listings will process the current key-release times and look for a match with the existing signatures.
如果在入口点处(或者附近)没有这样的门,那么代码将使用调用者当时持有的任何键来运行。
Without a gate at (or near) an entry point, code would run with whichever keys the caller happened to hold.
ID属性在程序代码中引用每一个快捷键对应表项。
The ID property references each accelerator table entry in program code.
例如,输入connect后按回车键,您将看到用于连接MongoDB数据库的源代码。
For example, type connect and hit the return key, and you will see the source code used to connect to a MongoDB database.
如果使用的是MySQL,而且想要为表定义外键,则需要在从数据库中加载模式之后,编写代码定义这些字段。
If you're using MySQL and want to define foreign keys for a table, you'll need to define those fields in code after loading the schema from the database.
以下是Eclipse的使用技巧:在代码中选择errno,然后按下f3键(或右键单击errno,然后从上下文菜单中选择“OpenDeclaration”)。
Here's an Eclipse tip: Select errno in your code, then press the F3 key (or right-click on errno, then choose Open Declaration from the context menu).
您可能希望将键查找代码打包在指定模板中,使代码更加清晰。
You might try to clean up this code a bit by packaging the key lookup code in a named template.
指定重复次数,扫描代码,扩展键标志,上下文代码,前期的键状态标志,转换状态标志。
Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag.
当您在代码片断上移动鼠标时,同时按下键盘上的Ctrl键,这个代码片断就会变成超链接。
When you hover the mouse cursor over a fragment of your code while holding down the Ctrl key on the keyboard, that fragment of the code can turn into a hyperlink.
如果会话已存在,第7行代码将从会话中获取会话键,否则它将为null。
Line 7 gets the session key from the session if it's already present, else it would be null.
当这个组合键按下时,源代码查看器仍然不知道我们想要一个自动完成建议列表。
The source viewer still does not know that we want a list of completion proposals when this key combination is pressed.
按下Ctrl +空格键将触发内容助理操作,并且会禁止这个组合键的事件,以便源代码查看器不会进一步处理它。
Pressing Ctrl + spacebar would trigger the content assist operation and would veto the key event so that it is not processed any further by the source viewer.
按下Ctrl +空格键将触发内容助理操作,并且会禁止这个组合键的事件,以便源代码查看器不会进一步处理它。
Pressing Ctrl + spacebar would trigger the content assist operation and would veto the key event so that it is not processed any further by the source viewer.
应用推荐