/// <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 }
private string DataFilePath() { return(IOServices.BuildTempPath(GetType().Name + ".db4o")); }
private static string GetJavaDataFile() { return(IOServices.BuildTempPath("java.yap")); }