data encapsulation
Posted: Wed May 23, 2012 10:02 pm
user code module - currently I am retreiving data from sql server and passing as parameter to the method, but i can't figure out how to separate query and entering data to the object. Thank you in advance.
while(myReader.Read())
{
_scenarioID = myReader["scenarioid"].ToString(); column
_scenarioDescr = myReader["descr"].ToString();
enterID(_scenarioID);
enterScenaDes( _scenarioDescr );
}
--------how will i hold the data after query , then process outside the while loop,
while(myReader.Read())
{
_scenarioID = myReader["scenarioid"].ToString(); column
_scenarioDescr = myReader["descr"].ToString();
enterID(_scenarioID);
enterScenaDes( _scenarioDescr );
}
--------how will i hold the data after query , then process outside the while loop,