Basic DAO pattern question
807569Sep 28 2006 — edited Sep 28 2006I was told that the best way to implement database is through DAO pattern.
I'be looked at a lot of examples over the net but couldn't understand it right.
let's say I have 2 classes:
1- a main class that needs to access database
2 - class that handles database manipulation (connect to database, add values, delete and etc.)
and I have an Interface with all database manipulation methods, it's implemented by the socond class.
Ok, What I do next?
How do I use DAO pattern?
thanks.