简体   繁体   English

Visual Studio 2010中的相关查询

[英]Correlated query in visual studio 2010

I have two queries that are connected displaying at the same time in my VB project. 我的VB项目中有两个同时显示的查询。 I want the results of one query to be limited by the current value of the first. 我希望一个查询的结果受第一个查询的当前值限制。

To be more specific, I have one query that lists patient demographics, and another that lists all the visits of all the patients. 更具体地说,我有一个查询列出了患者的人口统计信息,另一个查询列出了所有患者的所有就诊情况。 I want to somehow limit the visits query to only show the visits of the patient currently being displayed. 我想以某种方式将访问查询限制为仅显示当前显示的患者的访问。

I don't know visual studio that well, and have basically created my program without a true understanding of what's going on under the hood of the GUI drag-and-drop. 我对Visual Studio不太了解,并且基本上在创建我的程序时并没有真正了解GUI拖放背后的情况。 Where can I modify the text of the query dynamically with the current value of the patient's query? 在哪里可以使用患者查询的当前值动态修改查询的文本?

TIA TIA

Where can I modify the text of the query dynamically with the current value of the patient's query? 在哪里可以使用患者查询的当前值动态修改查询的文本?

There's a number of technologies that support Drag and Drop, ADO.NET Entity Data Model, Linq To SQL Data Classes, DataSet, ect. 有许多技术支持拖放,ADO.NET实体数据模型,Linq To SQL数据类,DataSet等。 Each one has it own mechanism for data retrieval, so it tough to answer your question without knowing which one you're doing. 每个人都有其自己的数据检索机制,因此很难在不知道正在执行哪个问题的情况下回答您的问题。

I don't know visual studio that well, and have basically created my program without a true understanding of what's going on under the hood of the GUI drag-and-drop. 我对Visual Studio不太了解,并且基本上在创建我的程序时并没有真正了解GUI拖放背后的情况。

You should take a look at the (but do not modify) the .designer.vb files to see what gets created "under the hood" 您应该查看.designer.vb文件(但不要修改),以查看“在后台”创建的内容

If you're still having trouble understanding where the SQL gets created after that you should include some of the code from the .designer.vb files, as well as what technology you're using. 如果仍然无法理解之后创建SQL的位置,则应包括.designer.vb文件中的一些代码,以及所使用的技术。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM