Esempio n. 1
0
        public void Create()
        {
            if (Exists)
            {
                throw new System.IO.IOException("Exists: " + DbConnection);
            }
            log.InfoFormat("Create user={0}", user);
            DbFile.EnsureParentDirectoryExists();
            settings = new Settings();
            Collectors   c = new Collectors();
            StringWriter w = new StringWriter();

            c.CreateSampleScript(w);
            settings.Script = w.ToString();
            Write();
        }