If you have a table named PERSO with fields NAME and GENDER, genio will generate a class named CSGenioAperso with the corresponding fields. This can be used to query the database:
//Search all persons in a list
List<CSGenioAperso> allPersons = CSGenioAperso.searchList(sp, user);
foreach(CSGenioAperso person in allPersons)
{
if(person.ValGender == "M")
{
person.ValName = "Mr " + person.ValName;
}
else
{
person.ValName = "Ms " + person.ValName;
}
}