简体   繁体   中英

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.

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.

One possible way to handle this would be using a stored procedure to do the actual inserting/updating (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)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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