I've been tasked to create a "Data Access Layer (DAL) class, the first thing I need to do is to find a sample of how to connect to a database. What is an easy way and where can I find some good samples?
I would suggest you to take a look at the Enterprise Library project. Data access objects is part of the project and it comes with a great sets of samples. Besides that, I think generally speaking, it's good if you start right off the bat and use enterprise
library, save you a lot work.
http://msdn2.microsoft.com/en-us/library/Aa480453.aspx
Liming Xu
Jumptree ASP.NET 2.0 Project Management, Bug Tracking & Task Management - Encourages collaboration, provides transparency and comes with metrics.
JQuery Gantt, JQuery Calendar, SiteMinder/AD Authentication, Customizable Languages, Custom Fields, Lucene.Net Search, and more
bthumber
Member
244 Points
669 Posts
Creating a DAL class
Jun 06, 2007 12:49 PM|LINK
I've been tasked to create a "Data Access Layer (DAL) class, the first thing I need to do is to find a sample of how to connect to a database. What is an easy way and where can I find some good samples?
Thanks
Liming
Contributor
5367 Points
1076 Posts
Re: Creating a DAL class
Jun 06, 2007 02:34 PM|LINK
I would suggest you to take a look at the Enterprise Library project. Data access objects is part of the project and it comes with a great sets of samples. Besides that, I think generally speaking, it's good if you start right off the bat and use enterprise library, save you a lot work.
http://msdn2.microsoft.com/en-us/library/Aa480453.aspx
Jumptree ASP.NET 2.0 Project Management, Bug Tracking & Task Management - Encourages collaboration, provides transparency and comes with metrics.
JQuery Gantt, JQuery Calendar, SiteMinder/AD Authentication, Customizable Languages, Custom Fields, Lucene.Net Search, and more