I want to store many record that I query from database in list , one record has 10 fields, in order to loop it later.
But I have no idea to do that. Anyone can answer me please.
I want to store many record that I query from database in list ,
Share
Below is a good practice to store data and loop through among them.
Create Model/POCO class as:
Fill and get data list:
Save data that is returned from GetDataList() into your datalist and loop through among the data as required.