public virtual void TestSubClass() { DeleteBase(Name); Class1 class1 = new SubClassOfClass1("olivier", 78); var class3 = new Class3(10, class1); var odb = Open(Name); odb.Store(class3); odb.Close(); odb = Open(Name); var query = odb.Query<Class3>(); var c3 = query.Execute<Class3>().GetFirst(); AssertEquals(class3.GetNb(), c3.GetNb()); AssertEquals(class3.GetClass1().GetName(), c3.GetClass1().GetName()); odb.Close(); }
public virtual void TestSubClass() { DeleteBase(Name); Class1 class1 = new SubClassOfClass1("olivier", 78); var class3 = new Class3(10, class1); var odb = Open(Name); odb.Store(class3); odb.Close(); odb = Open(Name); var query = odb.Query <Class3>(); var c3 = query.Execute <Class3>().GetFirst(); AssertEquals(class3.GetNb(), c3.GetNb()); AssertEquals(class3.GetClass1().GetName(), c3.GetClass1().GetName()); odb.Close(); }