0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VB.net、C#  DataAdapter.Updateのしくみを解説したサイト

Last updated at Posted at 2019-12-22

VB.netやC#でのDataAdapter.Updateのしくみを解説したお勧めサイト

DataTableのRowStateの状態が
Added → InsertCommandプロパティ、
Modified → UpdateCommandプロパティ、
Deleted → DeleteCommandプロパティ、
に保存されているSQLコマンドが実行されるというわけですね。
http://okwakatta.net/code/ado09.html

こちらはVB中学校ってサイトでページの最後にDataAdapter.Updateの解説があります。
DataAdapter.Update(DataGridView.DataSource)って書き方もできるっぽいですね
http://rucio.o.oo7.jp/main/VBdotNet/Database/Database4.htm

try内でトランザクションを開始するステートを記述するんですね
処理が終わったらコミットステートメント
Chatch内でロールバックステートメント
Finally内でリソース開放
https://tmg0525.hatenadiary.jp/entry/2017/09/14/143406
https://hosopro.blogspot.com/2016/10/sqldataadapter-update-vb.html
https://www.atmarkit.co.jp/ait/articles/0401/24/news002_2.html

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?