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
|
|
@ -137,6 +137,11 @@ public class Northwind : DbContext
|
||||||
"Integrated Security=true;" +
|
"Integrated Security=true;" +
|
||||||
"MultipleActiveResultSets=true;";
|
"MultipleActiveResultSets=true;";
|
||||||
|
|
||||||
|
ConsoleColor previousColor = ForegroundColor;
|
||||||
|
ForegroundColor = ConsoleColor.DarkYellow;
|
||||||
|
WriteLine($"Connection: {connection}");
|
||||||
|
ForegroundColor = previousColor;
|
||||||
|
|
||||||
optionsBuilder.UseSqlServer(connection);
|
optionsBuilder.UseSqlServer(connection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue