Ejemplo n.º 1
0
        /// <exception cref="System.IO.IOException"></exception>
        protected virtual string OldDatabaseFilePath()
        {
            string oldFile = IOServices.BuildTempPath("old_db.db4o");

            File4.Copy(SourceFile(), oldFile);
            return(oldFile);
        }
        public Db4oLibraryEnvironment(File file, File additionalAssembly)
        {
            _targetAssembly = file.GetAbsolutePath();
#if !CF && !SILVERLIGHT
            _assemblyVersion = AssemblyVersionFor(_targetAssembly);
            _baseDirectory   = IOServices.BuildTempPath("migration-domain-" + _assemblyVersion);
            _domain          = CreateDomain(SetUpBaseDirectory());
            try
            {
                SetUpAssemblyResolver();
                SetUpLegacyAdapter();
            }
            catch (Exception x)
            {
                Dispose();
                throw new Exception("Failed to setup environment for '" + _targetAssembly + "'", x);
            }
#endif
        }
Ejemplo n.º 3
0
 private string DataFilePath()
 {
     return(IOServices.BuildTempPath(GetType().Name + ".db4o"));
 }
Ejemplo n.º 4
0
 private static string GetJavaDataFile()
 {
     return(IOServices.BuildTempPath("java.yap"));
 }