User933695886 posted
Hi,
I have a simple parent and child entitis: Country, City. City has Country_Id and City_Id.
I need to write a DAL method that recives a City_Id as a parameter, and manipulates the given city and some other cities in the country.
My DAL is ADO.NET to a DATASET class generated by the Visual Studio 2008.
What would be a better practice:
- Going twice to the DB: Using SqlDataReader to retrieve the Country_Id and then SqlDataAdapter to fill my DataTable?
- Going once to the DB: Using SqlDataAdapter to bring the right cities by join self Cities table on Country_Id?
- Another way?
TIA