Beispiel #1
0
        public DbTransaction CreateTransaction(DbRootAddress rootAddress)
        {
            // Check the root address session is the same as this object,
            if (!rootAddress.Session.Equals(this))
                throw new ApplicationException("root_address is not from this session");

            return CreateTransaction(rootAddress.Address);
        }
Beispiel #2
0
 public DbRootAddress[] GetHistoricalSnapshots(DateTime timeStart, DateTime timeEnd)
 {
     DataAddress[] roots = client.GetHistoricalSnapshots(PathName, timeStart, timeEnd);
     // Wrap the returned objects in SDBRootAddress,
     DbRootAddress[] sdbRoots = new DbRootAddress[roots.Length];
     for (int i = 0; i < roots.Length; ++i) {
         sdbRoots[i] = new DbRootAddress(this, roots[i]);
     }
     return sdbRoots;
 }
Beispiel #3
0
        public DbTransaction CreateTransaction(DbRootAddress rootAddress)
        {
            // Check the root address session is the same as this object,
            if (!rootAddress.Session.Equals(this))
            {
                throw new ApplicationException("root_address is not from this session");
            }

            return(CreateTransaction(rootAddress.Address));
        }
Beispiel #4
0
 public DbRootAddress[] GetHistoricalSnapshots(DateTime timeStart, DateTime timeEnd)
 {
     DataAddress[] roots = client.GetHistoricalSnapshots(PathName, timeStart, timeEnd);
     // Wrap the returned objects in SDBRootAddress,
     DbRootAddress[] sdbRoots = new DbRootAddress[roots.Length];
     for (int i = 0; i < roots.Length; ++i)
     {
         sdbRoots[i] = new DbRootAddress(this, roots[i]);
     }
     return(sdbRoots);
 }