Skip to content

Commit db81663

Browse files
committed
Chapter 7 done, Chapter 8 ready
1 parent 551c110 commit db81663

File tree

102 files changed

+45250
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+45250
-225
lines changed

.gitignore

+4-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
1-
<<<<<<< HEAD
2-
# use glob syntax
3-
syntax: glob
1+
**/.tscache/**
2+
**/.vs/
43

5-
wwwroot/app/**
6-
wwwroot/bin/**
7-
wwwroot/js/**
8-
wwwroot/scripts/**
9-
wwwroot/styles/**
10-
wwwroot/dist/main-client.*
11-
ClientApp/dist/main-server.*
12-
13-
node_modules/**
14-
[Ss]cripts/[Aa]pp/*.js
15-
[Ss]cripts/[Aa]pp_old/*.js
16-
17-
[Mm]igrations/**
18-
19-
.tscache/**
20-
.vs/
4+
## **/[Mm]igrations/**
5+
**/[Ll]ogs/**
216

227
*.mwb.bak # MySQL Workbench .BAK file
238
*.dbmdl # VS2010 Database Projects cache file
@@ -387,5 +372,3 @@ ASALocalRun/
387372

388373
# MFractors (Xamarin productivity tool) working folder
389374
.mfractor/
390-
>>>>>>> 4584b353e67bb142e570857ccd8679e29581917f
391-
/Chapter_10/AuthSample_old

.hgignore

-57
This file was deleted.

All_Chapters.sln

+49
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,40 @@ EndProject
9797
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList", "Chapter_06\MyBGList\MyBGList.csproj", "{F8D10F16-38FB-4144-A2A3-3A8FF1616CD3}"
9898
EndProject
9999
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Exercises", "Exercises", "{FDC5F308-A4DE-47CC-AC9A-BBE480B174C2}"
100+
ProjectSection(SolutionItems) = preProject
101+
Chapter_06\Exercises\Program.cs = Chapter_06\Exercises\Program.cs
102+
EndProjectSection
103+
EndProject
104+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DTO", "DTO", "{ED59CF4D-80A1-4080-AC1D-1580D277D1AC}"
105+
ProjectSection(SolutionItems) = preProject
106+
Chapter_06\Exercises\DTO\DomainDTO.cs = Chapter_06\Exercises\DTO\DomainDTO.cs
107+
Chapter_06\Exercises\DTO\MechanicDTO.cs = Chapter_06\Exercises\DTO\MechanicDTO.cs
108+
EndProjectSection
109+
EndProject
110+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Attributes", "Attributes", "{20726514-46BB-46B8-8498-3B0CC299B29C}"
111+
ProjectSection(SolutionItems) = preProject
112+
Chapter_06\Exercises\Attributes\LettersOnlyValidatorAttribute.cs = Chapter_06\Exercises\Attributes\LettersOnlyValidatorAttribute.cs
113+
EndProjectSection
114+
EndProject
115+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Controllers", "Controllers", "{C4E2FA0A-C0E3-432E-A9CF-F07A218DC4B3}"
116+
ProjectSection(SolutionItems) = preProject
117+
Chapter_06\Exercises\Controllers\DomainsController.cs = Chapter_06\Exercises\Controllers\DomainsController.cs
118+
EndProjectSection
119+
EndProject
120+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Chapter_07", "Chapter_07", "{3E2EDCC2-A7E1-4A2F-8143-0B1E45512C28}"
121+
EndProject
122+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList", "Chapter_07\MyBGList\MyBGList.csproj", "{ACCDB842-9030-42F7-BF74-943BA0A2797C}"
123+
EndProject
124+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Exercises", "Exercises", "{87A6BDDF-56DB-4EBC-814A-1EAB6B8C274D}"
125+
ProjectSection(SolutionItems) = preProject
126+
Chapter_07\Exercises\Program.cs = Chapter_07\Exercises\Program.cs
127+
EndProjectSection
128+
EndProject
129+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Chapter_08", "Chapter_08", "{7FF64714-167C-4D09-A0BB-E64E6B38E423}"
130+
EndProject
131+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList", "Chapter_08\MyBGList\MyBGList.csproj", "{86B7DC01-820B-403E-A389-565B35A7BF63}"
132+
EndProject
133+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Exercises", "Exercises", "{9FBFF8CC-E351-4169-8C19-82431A9244B5}"
100134
EndProject
101135
Global
102136
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -128,6 +162,14 @@ Global
128162
{F8D10F16-38FB-4144-A2A3-3A8FF1616CD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
129163
{F8D10F16-38FB-4144-A2A3-3A8FF1616CD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
130164
{F8D10F16-38FB-4144-A2A3-3A8FF1616CD3}.Release|Any CPU.Build.0 = Release|Any CPU
165+
{ACCDB842-9030-42F7-BF74-943BA0A2797C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
166+
{ACCDB842-9030-42F7-BF74-943BA0A2797C}.Debug|Any CPU.Build.0 = Debug|Any CPU
167+
{ACCDB842-9030-42F7-BF74-943BA0A2797C}.Release|Any CPU.ActiveCfg = Release|Any CPU
168+
{ACCDB842-9030-42F7-BF74-943BA0A2797C}.Release|Any CPU.Build.0 = Release|Any CPU
169+
{86B7DC01-820B-403E-A389-565B35A7BF63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
170+
{86B7DC01-820B-403E-A389-565B35A7BF63}.Debug|Any CPU.Build.0 = Debug|Any CPU
171+
{86B7DC01-820B-403E-A389-565B35A7BF63}.Release|Any CPU.ActiveCfg = Release|Any CPU
172+
{86B7DC01-820B-403E-A389-565B35A7BF63}.Release|Any CPU.Build.0 = Release|Any CPU
131173
EndGlobalSection
132174
GlobalSection(SolutionProperties) = preSolution
133175
HideSolutionNode = FALSE
@@ -152,6 +194,13 @@ Global
152194
{D559F09C-25F6-4515-964E-A90A99B768AD} = {8DFE3088-B0DF-4C84-B9A1-030C58F0C4A4}
153195
{F8D10F16-38FB-4144-A2A3-3A8FF1616CD3} = {6E256285-85A8-4485-9C59-10D4F42FAD12}
154196
{FDC5F308-A4DE-47CC-AC9A-BBE480B174C2} = {6E256285-85A8-4485-9C59-10D4F42FAD12}
197+
{ED59CF4D-80A1-4080-AC1D-1580D277D1AC} = {FDC5F308-A4DE-47CC-AC9A-BBE480B174C2}
198+
{20726514-46BB-46B8-8498-3B0CC299B29C} = {FDC5F308-A4DE-47CC-AC9A-BBE480B174C2}
199+
{C4E2FA0A-C0E3-432E-A9CF-F07A218DC4B3} = {FDC5F308-A4DE-47CC-AC9A-BBE480B174C2}
200+
{ACCDB842-9030-42F7-BF74-943BA0A2797C} = {3E2EDCC2-A7E1-4A2F-8143-0B1E45512C28}
201+
{87A6BDDF-56DB-4EBC-814A-1EAB6B8C274D} = {3E2EDCC2-A7E1-4A2F-8143-0B1E45512C28}
202+
{86B7DC01-820B-403E-A389-565B35A7BF63} = {7FF64714-167C-4D09-A0BB-E64E6B38E423}
203+
{9FBFF8CC-E351-4169-8C19-82431A9244B5} = {7FF64714-167C-4D09-A0BB-E64E6B38E423}
155204
EndGlobalSection
156205
GlobalSection(ExtensibilityGlobals) = postSolution
157206
SolutionGuid = {58E128FF-6460-4A49-9E95-9D8E08D888FC}

Chapter_02/Exercises/BoardGame.cs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ public class BoardGame
66

77
public string? Name { get; set; }
88

9-
public string? Publisher { get; set; }
10-
119
public int? Year { get; set; }
1210

1311
public int? MinPlayers { get; set; }

Chapter_02/Exercises/BoardGamesController.cs

-3
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,20 @@ public IEnumerable<BoardGame> Get()
2020
new BoardGame() {
2121
Id = 1,
2222
Name = "Axis & Allies",
23-
Publisher = "Milton Bradley",
2423
Year = 1981,
2524
MinPlayers = 2,
2625
MaxPlayers = 5
2726
},
2827
new BoardGame() {
2928
Id = 2,
3029
Name = "Citadels",
31-
Publisher = "Hans im Glück",
3230
Year = 2000,
3331
MinPlayers = 2,
3432
MaxPlayers = 8
3533
},
3634
new BoardGame() {
3735
Id = 3,
3836
Name = "Terraforming Mars",
39-
Publisher = "FryxGames",
4037
Year = 2016,
4138
MinPlayers = 1,
4239
MaxPlayers = 5

Chapter_02/MyBGList/BoardGame.cs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ public class BoardGame
66

77
public string? Name { get; set; }
88

9-
public string? Publisher { get; set; }
10-
119
public int? Year { get; set; }
1210
}
1311
}

Chapter_02/MyBGList/Controllers/BoardGamesController.cs

-4
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,16 @@ public IEnumerable<BoardGame> Get()
2020
new BoardGame() {
2121
Id = 1,
2222
Name = "Axis & Allies",
23-
Publisher = "Milton Bradley",
2423
Year = 1981
2524
},
2625
new BoardGame() {
2726
Id = 2,
2827
Name = "Citadels",
29-
Publisher = "Hans im Glück",
3028
Year = 2000
3129
},
3230
new BoardGame() {
3331
Id = 3,
34-
3532
Name = "Terraforming Mars",
36-
Publisher = "FryxGames",
3733
Year = 2016
3834
}
3935
};

Chapter_03/Exercises/Controllers/v1/BoardGamesController.cs

-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,16 @@ public RestDTO<BoardGame[]> Get()
2525
new BoardGame() {
2626
Id = 1,
2727
Name = "Axis & Allies",
28-
Publisher = "Milton Bradley",
2928
Year = 1981
3029
},
3130
new BoardGame() {
3231
Id = 2,
3332
Name = "Citadels",
34-
Publisher = "Hans im Glück",
3533
Year = 2000
3634
},
3735
new BoardGame() {
3836
Id = 3,
3937
Name = "Terraforming Mars",
40-
Publisher = "FryxGames",
4138
Year = 2016
4239
}
4340
},

Chapter_03/Exercises/Controllers/v2/BoardGamesController.cs

-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,16 @@ public RestDTO<BoardGame[]> Get()
2525
new BoardGame() {
2626
Id = 1,
2727
Name = "Axis & Allies",
28-
Publisher = "Milton Bradley",
2928
Year = 1981
3029
},
3130
new BoardGame() {
3231
Id = 2,
3332
Name = "Citadels",
34-
Publisher = "Hans im Glück",
3533
Year = 2000
3634
},
3735
new BoardGame() {
3836
Id = 3,
3937
Name = "Terraforming Mars",
40-
Publisher = "FryxGames",
4138
Year = 2016
4239
}
4340
},

Chapter_03/MyBGList/BoardGame.cs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ public class BoardGame
66

77
public string? Name { get; set; }
88

9-
public string? Publisher { get; set; }
10-
119
public int? Year { get; set; }
1210
}
1311
}

Chapter_03/MyBGList/Controllers/BoardGamesController.cs

-3
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,16 @@ public RestDTO<BoardGame[]> Get()
2424
new BoardGame() {
2525
Id = 1,
2626
Name = "Axis & Allies",
27-
Publisher = "Milton Bradley",
2827
Year = 1981
2928
},
3029
new BoardGame() {
3130
Id = 2,
3231
Name = "Citadels",
33-
Publisher = "Hans im Glück",
3432
Year = 2000
3533
},
3634
new BoardGame() {
3735
Id = 3,
3836
Name = "Terraforming Mars",
39-
Publisher = "FryxGames",
4037
Year = 2016
4138
}
4239
},

Chapter_03/MyBGList_ApiVersion/BoardGame.cs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ public class BoardGame
66

77
public string? Name { get; set; }
88

9-
public string? Publisher { get; set; }
10-
119
public int? Year { get; set; }
1210
}
1311
}

Chapter_03/MyBGList_ApiVersion/Controllers/v1/BoardGamesController.cs

-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,16 @@ public RestDTO<BoardGame[]> Get()
2525
new BoardGame() {
2626
Id = 1,
2727
Name = "Axis & Allies",
28-
Publisher = "Milton Bradley",
2928
Year = 1981
3029
},
3130
new BoardGame() {
3231
Id = 2,
3332
Name = "Citadels",
34-
Publisher = "Hans im Glück",
3533
Year = 2000
3634
},
3735
new BoardGame() {
3836
Id = 3,
3937
Name = "Terraforming Mars",
40-
Publisher = "FryxGames",
4138
Year = 2016
4239
}
4340
},

Chapter_03/MyBGList_ApiVersion/Controllers/v2/BoardGamesController.cs

-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,16 @@ public RestDTO<BoardGame[]> Get()
2525
new BoardGame() {
2626
Id = 1,
2727
Name = "Axis & Allies",
28-
Publisher = "Milton Bradley",
2928
Year = 1981
3029
},
3130
new BoardGame() {
3231
Id = 2,
3332
Name = "Citadels",
34-
Publisher = "Hans im Glück",
3533
Year = 2000
3634
},
3735
new BoardGame() {
3836
Id = 3,
3937
Name = "Terraforming Mars",
40-
Publisher = "FryxGames",
4138
Year = 2016
4239
}
4340
},

Chapter_04/Exercises/Model/BoardGames_Categories.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.ComponentModel.DataAnnotations;
2-
using System.ComponentModel.DataAnnotations.Schema;
32

43
namespace MyBGList.Models
54
{

Chapter_04/Exercises/Model/BoardGames_Domains.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.ComponentModel.DataAnnotations;
2-
using System.ComponentModel.DataAnnotations.Schema;
32

43
namespace MyBGList.Models
54
{

Chapter_04/Exercises/Model/BoardGames_Mechanics.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.ComponentModel.DataAnnotations;
2-
using System.ComponentModel.DataAnnotations.Schema;
32

43
namespace MyBGList.Models
54
{

Chapter_04/MyBGList/BoardGame.cs

-13
This file was deleted.

0 commit comments

Comments
 (0)