mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
Merge branch 'main' of https://github.com/markjprice/cs11dotnet7
This commit is contained in:
commit
33fd5a6857
|
|
@ -136,6 +136,11 @@ public class Northwind : DbContext
|
|||
"Initial Catalog=Northwind;" +
|
||||
"Integrated Security=true;" +
|
||||
"MultipleActiveResultSets=true;";
|
||||
|
||||
ConsoleColor previousColor = ForegroundColor;
|
||||
ForegroundColor = ConsoleColor.DarkYellow;
|
||||
WriteLine($"Connection: {connection}");
|
||||
ForegroundColor = previousColor;
|
||||
|
||||
optionsBuilder.UseSqlServer(connection);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue