Hello guys...
I have a Client class like that:
public class Client
{
public Person Pers { get; set; }
}
And I have 2 Person´s child class :
public class PersonType1 : Person
{
protected string att1;
protected string att2;
}
public class PersonType2 : Person
{
protected string att3;
protected string att4;
}
public class Person
{
protected string attx;
protected string atty;
}
So, my Client could be PersonType1 or PersonType2...
I need execute a Client search ... The parameters to that search are att1,att2,att3,att4,attx,atty... But all those are optional...
I´m trying to execute that search with ICriteria, but I dont know how specify that inheritance scheme...