| |

VerySource

 Forgot password?
 Register
Search
View: 1033|Reply: 5

If you determine whether the dataset has changed

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-12 08:30:01
| Show all posts |Read mode
In the operation, I first read the data into the dataset, then operated the datatable in the dataset, and finally submitted to the database. In the middle, I may only change a column of values ​​in a row, but as long as the changes are made, it is necessary to determine whether the changes have occurred. , Experts please give pointers, how to determine whether there has been a change.
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-4-8 18:15:01
| Show all posts
dataset.tatatable.getchanged ();
Reply

Use magic Report

0

Threads

13

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 Singapore

Post time: 2020-4-8 23:00:01
| Show all posts
dataSet1.GetChanges () // As long as the tables in the dataSet are added, modified, or deleted, the value of dataSet1.GetChanges () is not null
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-9 23:30:01
| Show all posts
if (null! = dataset.GetChanges ())
{
    // dataset changed
}
Reply

Use magic Report

1

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-4-10 10:45:01
| Show all posts
Um. Upstairs is pretty detailed.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 13:00:01
| Show all posts
learned
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list