Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
        /// <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);
        }