mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-07 23:33:50 +00:00
Initial commit
This commit is contained in:
parent
01d6ccf414
commit
dd097904c2
54 changed files with 37154 additions and 0 deletions
28
vscode/Chapter10/WorkingWithEFCore/Program.Helpers.cs
Normal file
28
vscode/Chapter10/WorkingWithEFCore/Program.Helpers.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
partial class Program
|
||||
{
|
||||
static void SectionTitle(string title)
|
||||
{
|
||||
ConsoleColor previousColor = ForegroundColor;
|
||||
ForegroundColor = ConsoleColor.Yellow;
|
||||
WriteLine("*");
|
||||
WriteLine($"* {title}");
|
||||
WriteLine("*");
|
||||
ForegroundColor = previousColor;
|
||||
}
|
||||
|
||||
static void Fail(string message)
|
||||
{
|
||||
ConsoleColor previousColor = ForegroundColor;
|
||||
ForegroundColor = ConsoleColor.Red;
|
||||
WriteLine($"Fail > {message}");
|
||||
ForegroundColor = previousColor;
|
||||
}
|
||||
|
||||
static void Info(string message)
|
||||
{
|
||||
ConsoleColor previousColor = ForegroundColor;
|
||||
ForegroundColor = ConsoleColor.Cyan;
|
||||
WriteLine($"Info > {message}");
|
||||
ForegroundColor = previousColor;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue