Hi masters,
I need a tutorial step-by-step to work with a list of objects in a class using SAP CR VS2010.
My classes are:
class Conta
{
public Conta(int pVal, string Code)
{
Valor = pVal;
Codigo = Code;
}
public string Codigo { set; get; }
public int Valor { set; get; }
}
class Student
{
public Student(string Code, string Name, DateTime BirthDate, int pNota)
{
this.Codigo = Code;
this.Nome = Name;
this.Idade = BirthDate;
this.Nota = pNota;
}
public IList<Conta> contas = new List<Conta>();
public string Codigo { set; get; }
public string Nome { set; get; }
public DateTime Idade { set; get; }
public int Total { set; get; }
public int Nota { set; get; }
public int Age
{
get
{
int now = DateTime.Now.Year;
int birth = Idade.Year;
return now - birth;
}
}
}
I want to make a master detail report with objects Student and Conta. My devsystem is VS2010 , SAP CR and NHibernate.
Any suggestion?
Best Regards
Leandro