| |

VerySource

 Forgot password?
 Register
Search
View: 742|Reply: 2

Is there a ResultSet in c # like java

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-11 14:20:01
| Show all posts |Read mode
My little brother is new to c #, I hope which big brother can answer me.
I want to make the query result in the database into the result set, and then add the result set to the arraylist.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-15 18:18:02
| Show all posts
I can use sqlDataReader to achieve it, I don't know if it is used correctly. Which brother can give pointers?
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-1-15 23:54:02
| Show all posts
can!
If the read data is only for display, it is better to use SqlDataReader. If other situations such as architecture are involved, use DataSet
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