Click here to Skip to main content
15,893,266 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi guys, i'm beginner programming on c#, i wanted know which the best form i may use for connect my database with my system.

Thanks
Posted
Comments
Kenneth Haugland 1-Sep-12 14:39pm    
Depend on you rrequirements I would guess... What do you want to use it for?
bbirajdar 1-Sep-12 14:47pm    
There are in all 138 ways to connect to the database in .net and the 12th method is the best...
diegofoca 1-Sep-12 14:52pm    
My system register clients in a hairdresser, but when load the tables clients, my system opens slow.
ridoy 1-Sep-12 15:06pm    
it depends on you..on which system you will develop and on which method you will be interested.But i will recommend you to use SQL database form.
diegofoca 4-Sep-12 7:59am    
It's ok, i used access for building system, this is not good form ?

If you are a beginner I would start with strong typed datasets and use dataadapters to fetch the data and perform the updates.
Next step might be to use an sql command yourself to fetch data and perform updates.
Going more advanced is using an entity framework.
The question is a bit generic, so my answer is a bit open too. If you have more specific questions I'll gladly answer.
 
Share this answer
 
Comments
diegofoca 5-Sep-12 14:31pm    
Ok, i use dataadapters at the moment, when i learn more i can use entity framework ?
Philip Stuyck 5-Sep-12 15:40pm    
sure, but if you encounter problems using the entity framework it help to have some knowledge about what is going on underneith. Entity framework shields database stuff from you, nevertheless you have to know what you are doing.
There are two environment Connected and disconnected.
Connected: when there is 1-1 (server-Client) its very helpful..
Disconnected : When may clent-1/many server its helpful.

in case case of connected you can directly execute the Command Object.
but in case of disconnected you need to take help of temporary Dataset object.

okey.
these link will be helpful for you.
Connect Database with C#

connected and disconnected Environment

difference between Connected and Disconnected Architecture
 
Share this answer
 
Comments
diegofoca 4-Sep-12 8:05am    
thanks for your answer, i will study these forms, i'm lost but i will try.

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