Alex Rivera | Logout

Introduction to database interaction with C#

Asked 2009-04-17T19:52:17.147
10

Up to now in my programming career (two years) I have not had much database experience, but the company where I now work uses databases extensively for their product, and I feel behind the curve.

So I would like to know how best to start learning database interaction with C#. I've read about LINQ-to-SQL and ADO.net. Are these the right technologies to look into?

Where do I start?

EDIT: Thanks for all the responses. There were many good ones - I had a hard time choosing one as "the" answer. This helps me greatly!

Edit
Report

2 Answers

14

I would suggest investing your time in learning Microsoft SQL Server itself, Data Access Application Block from Enterprise Library and ADO.NET Entity Framework.

Entry point for learning SQL Server is here -> SQL Server Developer Center
Entry point for learning ADO.NET is here -> Learning ADO.NET at MSDN

First of all, in order to gain a good understanding of what ADO.NET is, check the links below:

Learn how to write direct queries in C# to SQL Server without using any frameworks and ORM tools, then proceed to learning more advanced technologies in ADO.NET family.

See also:

You may also want to download LINQPad, which is perfect tool for playing

answered 2009-04-17T19:53:43.180
2

Yes, you have nailed down the right technologies.

I have some fantastic and free pdfs/eBooks for you to look at:

ADO.NET

http://www.murach.com/books/adon/chapters.htm (vb and ado.net

http://www.springerlink.com/content/w2126101r8qr2052/ (ado.net fundamentals with c#)

http://archive.visualstudiomagazine.com/books/chapters/1590595122.pdf (vb & c#)

http://dotnet.jku.at/courses/tutorial/05.ADO.NET.pdf (great overview powerpoint)

http://docs.msdnaa.net/ark_new3.0/cd3/content/Courses%5CVargas%5CCh12.pdf (ado.net book)

http://media.wiley.com/product_data/excerpt/38/07821418/0782141838-1.pdf (nice)

LINQ-TO-SQL Scott Gu's Linq to Sql is probably all you need for a good start:

http://it-box.blogturk.net/wp-content/themes/it-box/files/LINQToSql.pdf

answered 2009-04-17T20:29:22.033

Your Answer