After reading this , I still have a question :
I use this code to query the db :
c# :
new BLL().GetPersonById(1)
BLL :
public Person GetPersonById(int id)
{
return new DAL ().GetPersonById(1);
}
DAL :
public Person GetPersonById(int id)
{
// goto db and create instance of Person and fill its data...
}
However , am I doing it wrong ,
Should my DAL return DataTable
instead ? ( so the BLL will create Person .... ?)
DAL :
public DataTable GetPersonById(int id)
{
// goto db ...
}
Thank you.
Edit :
the Person object is defined in BE dll ( business entity).