Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
i have a list -> 1:A,2:A,4:A,7:A,3:C,5:C,6:C,8:C,9:C,10:B,
i want to insert them into my database.

below is my database structure
my table

my database after i insert the list into my database
my expecting output
10:B -> Q_10 data insert = B ,1:A -> Q_1 data insert = A......

What I have tried:

i have no idea how to do this,i need help and guides ,thank you.
Posted
Updated 19-Jul-16 3:15am
v3
Comments
Suvendu Shekhar Giri 19-Jul-16 5:24am    
Ah! Please refer to some tutorials first.
KyLim0211 19-Jul-16 5:37am    
u comment for?at least provide me some guide/reference

Hey! Suvendu is right please refer some articles on How to. Here are some for you will might help you.
insert-all-data-of-a-list-into-database-table-at-once[^]

Inserting Value of Collection into Database[^]
 
Share this answer
 
Hi,
Follow this link "How to insert update delete in database using c# and sql"
Insert, Update and Delete Records in a C# DataGridView[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900