本文介绍了在cration之后创建两个现有项目之间的关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我们创建了两个表格为"0..1"的表格。到n关系。

示例:


表"数据库服务器"和表"数据库"。


一个数据库服务器可以有一个或多个数据库。

数据库可以有零个或一个数据库服务器。

(好吧,没有数据库服务器的数据库没有意义,但这是一个例子;-))



现在我有一个"列表和细节"数据库服务器的屏幕,网格中也有数据库。由lightswitch自动创建。

我可以将 new 数据库添加到数据库服务器。


但是如何在此屏幕中将 现有
数据库添加到我的数据库服务器?

当我向数据库服务器屏幕中的数据库网格添加一个新按钮时,此按钮将打开一个包含所有数据库(网格)的新屏幕,并且我可以编辑数据库条目。 />


有更简单的方法吗?因为添加按钮,生成辅助屏幕等并不是很舒服。


谢谢


问候

解决方案


Hello,

we have created two tables with "0..1" to n relationship.
Example:

Table "Database Server" and Table "databases".

One Databse Server can have one or more databases.
A Database can have zero or one Database server.
(OK, a databse without databse server makes no sense, but it is an example ;-) )

Now i have a "list and detail" screen for the database server and there are also the databases in the grid. Automatically created by lightswitch.
There i can add new databases to a database server.

But how can i add existing databases to my database server in this screen?
At the moment i add a new button to the databse-grid in the database server screen, this button opens a new screen with all databases (grid) and there i can edit a database entry.

Is there an easier way? Because adding button, generating the secondary screen etc. is not very comfortable.

Thank you

Regards

解决方案


这篇关于在cration之后创建两个现有项目之间的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 05:33
查看更多