煮面的工夫,准备浇头。
在例子中,那就是浇头的列表。
目前,假定所有浇头的价格都一样。
For the moment, assume that all the toppings have the same price.
浇头按钮的侦听器只是稍微复杂一点。
The listener for the topping buttons is only a bit more complicated.
最后一个数据库设计问题是比萨和浇头。
问题在于,如何管理比萨与浇头的关系?
The question is, how do you manage the relationship between pizza and toppings?
浇头面板略微复杂一点。
创建东侧(浇头)面板。
在分片分隔开来冷却浇头热肉糕。
The divider sheet separates the hot meat patty from the cooler toppings.
您需要允许用户制作每一半具有不同浇头的一张比萨饼。
You want to allow users to create a pizza with different toppings on each half.
把面条、豆芽、酱料混合到一起,加上浇头。
Combine bean sprouts and noodles, mix in the sauce. Top with vegetables and garnish.
设置一张浇头表,其中每个浇头都有一个名称和一个底价。
You'll set up a Toppings table in which each topping has a name and a base price.
创建表后,需要对浇头数组中的每个条目使用一条insert语句。
After you create the table, you use one insert statement for each entry in your toppings array.
我还在显示内容中添加了浇头的价格,因为该信息也可在数据库中获得。
I've also added the price of the topping to the display, because that information is also available in the database.
查克搅拌蛋清作为浇头,而谢丽尔则仔细地在锅底摆放香草片。
Chuck beat the egg whites for the topping while Cheryl carefully lined the pan with vanilla wafers.
在这里的目标只是要生成在上一篇文章末尾放入数据库中的所有浇头的列表。
Your goal here is merely to generate a list of all the toppings you placed in the database at the end of the previous article.
左半个比萨、整个比萨和右半个比萨的浇头布置分别为 -1、0或 1。
The topping placement will be -1, 0, or 1 for left half, whole pizza, and right half, respectively.
配料输送机传送系统,适用于比萨酱和各种浇头下原料的比萨面团。
Toppings conveyor conveys raw pizza dough under systems that apply sauce and a variety of toppings to the pizza.
这样做有很多很好的属性,其中一个事实是它允许在一个比萨上使用无数种浇头。
Doing so has many nice properties, among them the fact that it allows an infinite number of toppings on a pizza.
您希望对一个比萨使用足够多的浇头,将它们全都放在同一张表中会变得十分难看。
You'd want to allow enough toppings on a pizza that putting them all in the same table would become rather ugly.
开始时使用一些十分静态的数据——第1部分的Slicr页面中包括的比萨浇头列表。
You start with some fairly static data — the list of pizza toppings that you included in the Slicr page in Part 1.
单击与某种浇头对应的按钮会为两半都选中浇头,但每一半都可单独选中或清除。
Clicking the button for a topping checks both halves, but each half can be checked or cleared independently.
从概念上讲,那会更简单点,但会导致难于(比方说)挖掘订单数据来统计最受欢迎的浇头。
Conceptually, that's a bit simpler, but it would make it awkward to, say, mine your order data to count the most popular toppings.
如果您特别敢于冒险,您可以用一个浇头字段并用一张位图或连接字符串等内容来填充该字段。
If you're feeling particularly adventurous, you could have a single topping field and populate it with a bitmap or concatenated string or the like.
对Derby数据库进行一次调用,使用对象工厂创建浇头对象,并返回浇头对象。
You make a call to the Derby database, use the object factory to create topping objects, and return them.
室内的突出特色是波浪起伏的装有百叶窗板的天花板,这种“融合”有些像厚涂的蛋糕浇头。
The interior's standout feature is its undulating louvered ceiling, which "melts" at certain points like a gloopy cake topping.
室内的突出特色是波浪起伏的装有百叶窗板的天花板,这种“融合”有些像厚涂的蛋糕浇头。
The interior's standout feature is its undulating louvered ceiling, which "melts" at certain points like a gloopy cake topping.
应用推荐