Happy Coding Guys 🙂
Here am defining the structure of the class and declaring the list of that particular class.
I am using a select statement and adding the data returned from the database to that particular list.

Defining Connection string in Notepad file and common method to connect to multiple databases
How to change default icon in Windows Forms Application in C#