简体   繁体   English

WinForm C#按钮数据库关系

[英]WinForm C# Button Database Relationship

is it possible to have different insert statements executed at the sametime? 是否可以同时执行不同的插入语句? when a button is clicked? 单击按钮时?

Because We Are Tasked to normalize the table so I've divided my tables to reach its 3rd normal form. 由于我们的任务是对表格进行规范化,因此我对表格进行了划分,使其达到了第三范式。

However I am having a problem when I am inserting data into the database using my c# winform application. 但是,当我使用c#winform应用程序将数据插入数据库时​​遇到问题。

What I want when the user clicks the button "CONFIRMED" the data will be separately inserted into different tables. 当用户单击“确认”按钮时,我想要的是数据将分别插入到不同的表中。 And I will just then combine those tables using a select statement. 然后我将使用select语句合并这些表。

One possible way to handle this would be using a stored procedure to do the actual inserting/updating (CRUD). 解决此问题的一种可能方法是使用存储过程进行实际的插入/更新(CRUD)。 It will help you separate your layers and make any changes inside your database transparent to your frontend application. 它将帮助您分离各层,并使数据库内部的所有更改对前端应用程序透明。

Try with Parallel Programing by using Task Parallel Library (TPL) 通过使用任务并行库(TPL)尝试并行编程

http://www.codeproject.com/KB/Parallel_Programming/NET4ParallelIntro.aspx http://www.codeproject.com/KB/Parallel_Programming/NET4ParallelIntro.aspx

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

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