public void LoadParameters()
{
SqlParameter sqlSessionParameter = new SqlParameter("@SessionId", GlymaSession.Session.Id);
using (IDbConnectionAbstraction parametersDbConnection = GlymaSession.ConnectionFactory.CreateParametersDbConnection())
{
SqlCommand selectParametersFromId = new SqlCommand(SelectParametersFromSessionId, parametersDbConnection.Connection);
selectParametersFromId.Parameters.Add(sqlSessionParameter);
parametersDbConnection.Open();
IDataReader parameters = selectParametersFromId.ExecuteReader();
while (parameters.Read())
{
MapParameter parameter = new MapParameter();
parameter.LoadSessionObject(parameters);
AddParameter(parameter);
}
parametersDbConnection.Close();
}
}