public bool Execute(SetupDatabaseViewModel request)
        {
            if (installService.ShoulDatabaseBeSet())
            {
                string connectionString;
                if (request.CreateDatabase)
                {
                    connectionString = installService.CreateDatabase(request);
                }
                else
                {
                    connectionString = installService.TestConnectionString(request);
                }

                installService.SaveConnectionString(connectionString);

                return(true);
            }

            return(false);
        }
Пример #2
0
        public bool Execute(SetupDatabaseViewModel request)
        {
            installService.TestConnectionString(request);

            return(true);
        }