1
我正在使用db4o作为一个简单的应用程序,并带有嵌入式数据库。当我保存一个对象,然后更改该对象时,是否假设db4o返回已更改的对象?Db4o对象更新
下面的代码:
[Test]
public void NonReferenceTest()
{
Aim localAim = new Aim("local description", null);
dao.Save(localAim);
// changing the local value should not alter what we put into the dao
localAim.Description = "changed the description";
IQueryable<Aim> aims = dao.FindAll();
var localAim2 = new Aim("local description", null);
Assert.AreEqual(localAim2, aims.First());
}
测试失败。我需要以任何特殊方式安装db4o容器吗?将它包装在提交调用中?由于