/// <summary> /// create in temp directory with or without empty database file /// </summary> public static DBDescriptor CreateTemp(bool addEmptyDatabase) { // get temp directory string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); return(DBDescriptor.Create(tempDirectory, addEmptyDatabase)); }
/// <summary> /// Create at given location and fill with archive content /// </summary> public static DBDescriptor CreateFromArchive(string dirPath, string zipFilePath, IProcessingCallback callback) { DBDescriptor desc = DBDescriptor.Create(dirPath, false); FillFromArchive(desc, zipFilePath, callback); return(desc); }