Пример #1
0
        private string GetDatabaseUrl()
        {
            var url = Environment.GetEnvironmentVariable("DATABASE_URL");

            if (string.IsNullOrWhiteSpace(url))
            {
                return(@"Server=localhost;Port=5555;Database=thebooks;User Id=thebooks;Password=thebooks-pw;");
            }
            return(DbHelpers.FormatUrlToConnectionString(url));
        }