我有:
static class Db4o...
和:
class Db4oBase... // which uses Db4o class
我可以:
class Customer : Db4oBase
{
public Customer(string name)
{
}
}
这样我就可以:
Customer customer = new Customer("Acbel Polytech Philippines");
customer.store(); //something like that
它起作用了,直到在我开发的某个时候,下面的代码突然出错了:
class Db4o
{
.
.
.
public static IObjectSet Retrieve(object obj)
{
IObjectSet objectSet = null;
objectSet = container.Ext().QueryByExample(obj); // This part of the code
// throws a unsupported
// class hierarchy.
return objectSet;
}
}
QueryByExample 指令引发不受支持的类层次结构。有人知道我该怎么做吗?