Commit a2e88dd
authored
Update Program.cs
builder.Logging.AddConsole();
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
if (string.IsNullOrWhiteSpace(connectionString))
{
Console.Error.WriteLine("DefaultConnection is missing or empty.");
}
builder.Services.AddDbContext<IndustrialDbContext>(options =>
options.UseNpgsql(connectionString));1 parent 64d43d7 commit a2e88dd
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | | - | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
0 commit comments