This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Вынес переменные для подключения к БД в environment.json. Сделал подг…
…рузку этих переменных на старте приложения. Попытка установить dotnet-fm и накатывать миграции (пока неудачно)
- Loading branch information
Showing
62 changed files
with
6,658 additions
and
1,369 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
|
||
namespace app.Infrastructure.NHibernate | ||
{ | ||
/// <summary> | ||
/// Класс, знающий о данных для подключения к БД. | ||
/// Данные задаются в файле environment.json (по умолчанию) | ||
/// </summary> | ||
public static class DbAccessor | ||
{ | ||
// Хост базы данных | ||
public static string Host { get; } = Environment.GetEnvironmentVariable("DB_HOST"); | ||
|
||
// Имя базы данных | ||
public static string Database { get; } = Environment.GetEnvironmentVariable("DB_NAME"); | ||
|
||
// Пользовать | ||
public static string User { get; } = Environment.GetEnvironmentVariable("DB_USER"); | ||
|
||
// Пароль | ||
public static string Password { get; } = Environment.GetEnvironmentVariable("DB_PASSWORD"); | ||
|
||
// Готовая страка для connecion к БД. | ||
public static string ConnectionString { get; } = $"Server={Host};Port=5432;Database={Database};User Id={User};Password={Password};"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*" | ||
} | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+9.5 KB
src/bin/Debug/netcoreapp2.2/publish/FluentMigrator.Extensions.Oracle.dll
Binary file not shown.
Binary file added
BIN
+9 KB
src/bin/Debug/netcoreapp2.2/publish/FluentMigrator.Extensions.SqlAnywhere.dll
Binary file not shown.
Binary file added
BIN
+14 KB
src/bin/Debug/netcoreapp2.2/publish/FluentMigrator.Extensions.SqlServer.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+35.5 KB
src/bin/Debug/netcoreapp2.2/publish/FluentMigrator.Runner.Postgres.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+36.5 KB
src/bin/Debug/netcoreapp2.2/publish/FluentMigrator.Runner.SqlAnywhere.dll
Binary file not shown.
Binary file added
BIN
+53.5 KB
src/bin/Debug/netcoreapp2.2/publish/FluentMigrator.Runner.SqlServer.dll
Binary file not shown.
Binary file added
BIN
+20 KB
src/bin/Debug/netcoreapp2.2/publish/FluentMigrator.Runner.SqlServerCe.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+372 KB
src/bin/Debug/netcoreapp2.2/publish/System.Configuration.ConfigurationManager.dll
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+22.5 KB
src/bin/Debug/netcoreapp2.2/publish/System.Runtime.CompilerServices.Unsafe.dll
Binary file not shown.
Binary file added
BIN
+24.3 KB
src/bin/Debug/netcoreapp2.2/publish/System.Security.Cryptography.ProtectedData.dll
Binary file not shown.
Oops, something went wrong.