/// <exception cref="System.Exception"></exception> public virtual void TestInsert() { DeleteBase("tinterfaces.neodatis"); NeoDatis.Odb.ODB odb = Open("tinterfaces.neodatis"); ObjectWithInterfaces owi = new ObjectWithInterfaces("Ol√° chico"); odb.Store(owi); odb.Commit(); odb.Close(); }
public virtual void TestInsert() { DeleteBase("tinterfaces.ndb"); var odb = Open("tinterfaces.ndb"); var owi = new ObjectWithInterfaces("Ol√° chico"); odb.Store(owi); odb.Commit(); odb.Close(); }
/// <exception cref="System.Exception"></exception> public virtual void TestInsertAndSelect() { DeleteBase("tinterfaces.neodatis"); NeoDatis.Odb.ODB odb = Open("tinterfaces.neodatis"); ObjectWithInterfaces owi = new ObjectWithInterfaces("Ol√° chico"); odb.Store(owi); odb.Close(); odb = Open("tinterfaces.neodatis"); NeoDatis.Odb.Objects <ObjectWithInterfaces> os = odb.GetObjects <ObjectWithInterfaces>(); AssertEquals(1, os.Count); odb.Close(); }
public virtual void TestInsertAndSelect() { DeleteBase("tinterfaces.ndb"); var odb = Open("tinterfaces.ndb"); var owi = new ObjectWithInterfaces("Ol√° chico"); odb.Store(owi); odb.Close(); odb = Open("tinterfaces.ndb"); var query = odb.Query <ObjectWithInterfaces>(); var os = query.Execute <ObjectWithInterfaces>(); AssertEquals(1, os.Count); odb.Close(); }