Skip to content

Commit 6afb69b

Browse files
committed
Chapter 05 - First Draft
1 parent 1d4d8cd commit 6afb69b

Some content is hidden

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

41 files changed

+22521
-41
lines changed

All_Chapters.sln

+25
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Model", "Model", "{E566019F
7575
Chapter_04\Exercises\Model\Publisher.cs = Chapter_04\Exercises\Model\Publisher.cs
7676
EndProjectSection
7777
EndProject
78+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Chapter_05", "Chapter_05", "{61A32274-F783-4004-A45E-1BB097127920}"
79+
EndProject
80+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Exercises", "Exercises", "{8DFE3088-B0DF-4C84-B9A1-030C58F0C4A4}"
81+
EndProject
82+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList", "Chapter_05\MyBGList\MyBGList.csproj", "{19184268-B3AB-40AE-B3E4-990B2D629849}"
83+
EndProject
84+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Controllers", "Controllers", "{796403DB-ADC4-4598-A7FF-82E9C7AE1878}"
85+
ProjectSection(SolutionItems) = preProject
86+
Chapter_05\Exercises\Controllers\BoardGamesController.cs = Chapter_05\Exercises\Controllers\BoardGamesController.cs
87+
Chapter_05\Exercises\Controllers\SeedController.cs = Chapter_05\Exercises\Controllers\SeedController.cs
88+
EndProjectSection
89+
EndProject
90+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DTO", "DTO", "{D559F09C-25F6-4515-964E-A90A99B768AD}"
91+
ProjectSection(SolutionItems) = preProject
92+
Chapter_05\Exercises\DTO\BoardGameDTO.cs = Chapter_05\Exercises\DTO\BoardGameDTO.cs
93+
EndProjectSection
94+
EndProject
7895
Global
7996
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8097
Debug|Any CPU = Debug|Any CPU
@@ -97,6 +114,10 @@ Global
97114
{8FDCC6E3-FB56-45EF-B18D-B34C882CD1FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
98115
{8FDCC6E3-FB56-45EF-B18D-B34C882CD1FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
99116
{8FDCC6E3-FB56-45EF-B18D-B34C882CD1FF}.Release|Any CPU.Build.0 = Release|Any CPU
117+
{19184268-B3AB-40AE-B3E4-990B2D629849}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
118+
{19184268-B3AB-40AE-B3E4-990B2D629849}.Debug|Any CPU.Build.0 = Debug|Any CPU
119+
{19184268-B3AB-40AE-B3E4-990B2D629849}.Release|Any CPU.ActiveCfg = Release|Any CPU
120+
{19184268-B3AB-40AE-B3E4-990B2D629849}.Release|Any CPU.Build.0 = Release|Any CPU
100121
EndGlobalSection
101122
GlobalSection(SolutionProperties) = preSolution
102123
HideSolutionNode = FALSE
@@ -115,6 +136,10 @@ Global
115136
{79FC43C4-0966-4DAC-957E-BDB1A36E696E} = {888CC4D4-8F56-4EBE-B0C3-829BCE934E00}
116137
{73294E53-5E4A-4E1E-9D57-3C6FE607EBCE} = {79FC43C4-0966-4DAC-957E-BDB1A36E696E}
117138
{E566019F-3A19-4FF0-90C5-D5BB98B49A9E} = {79FC43C4-0966-4DAC-957E-BDB1A36E696E}
139+
{8DFE3088-B0DF-4C84-B9A1-030C58F0C4A4} = {61A32274-F783-4004-A45E-1BB097127920}
140+
{19184268-B3AB-40AE-B3E4-990B2D629849} = {61A32274-F783-4004-A45E-1BB097127920}
141+
{796403DB-ADC4-4598-A7FF-82E9C7AE1878} = {8DFE3088-B0DF-4C84-B9A1-030C58F0C4A4}
142+
{D559F09C-25F6-4515-964E-A90A99B768AD} = {8DFE3088-B0DF-4C84-B9A1-030C58F0C4A4}
118143
EndGlobalSection
119144
GlobalSection(ExtensibilityGlobals) = postSolution
120145
SolutionGuid = {58E128FF-6460-4A49-9E95-9D8E08D888FC}

Chapter_02/Exercises/BoardGamesController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public IEnumerable<BoardGame> Get()
2727
},
2828
new BoardGame() {
2929
Id = 2,
30-
Name = "Citadel",
30+
Name = "Citadels",
3131
Publisher = "Hans im Glück",
3232
Year = 2000,
3333
MinPlayers = 2,

Chapter_02/MyBGList/Controllers/BoardGamesController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public IEnumerable<BoardGame> Get()
2525
},
2626
new BoardGame() {
2727
Id = 2,
28-
Name = "Citadel",
28+
Name = "Citadels",
2929
Publisher = "Hans im Glück",
3030
Year = 2000
3131
},

Chapter_03/Exercises/Controllers/v1/BoardGamesController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public RestDTO<BoardGame[]> Get()
2121
{
2222
return new RestDTO<BoardGame[]>()
2323
{
24-
Data = new BoardGame[] {
24+
Data = new [] {
2525
new BoardGame() {
2626
Id = 1,
2727
Name = "Axis & Allies",
@@ -30,7 +30,7 @@ public RestDTO<BoardGame[]> Get()
3030
},
3131
new BoardGame() {
3232
Id = 2,
33-
Name = "Citadel",
33+
Name = "Citadels",
3434
Publisher = "Hans im Glück",
3535
Year = 2000
3636
},

Chapter_03/Exercises/Controllers/v2/BoardGamesController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public RestDTO<BoardGame[]> Get()
2121
{
2222
return new RestDTO<BoardGame[]>()
2323
{
24-
Items = new BoardGame[] {
24+
Items = new [] {
2525
new BoardGame() {
2626
Id = 1,
2727
Name = "Axis & Allies",
@@ -30,7 +30,7 @@ public RestDTO<BoardGame[]> Get()
3030
},
3131
new BoardGame() {
3232
Id = 2,
33-
Name = "Citadel",
33+
Name = "Citadels",
3434
Publisher = "Hans im Glück",
3535
Year = 2000
3636
},

Chapter_03/MyBGList/Controllers/BoardGamesController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public RestDTO<BoardGame[]> Get()
2020
{
2121
return new RestDTO<BoardGame[]>()
2222
{
23-
Data = new BoardGame[] {
23+
Data = new [] {
2424
new BoardGame() {
2525
Id = 1,
2626
Name = "Axis & Allies",
@@ -29,7 +29,7 @@ public RestDTO<BoardGame[]> Get()
2929
},
3030
new BoardGame() {
3131
Id = 2,
32-
Name = "Citadel",
32+
Name = "Citadels",
3333
Publisher = "Hans im Glück",
3434
Year = 2000
3535
},

Chapter_03/MyBGList_ApiVersion/Controllers/v1/BoardGamesController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public RestDTO<BoardGame[]> Get()
2121
{
2222
return new RestDTO<BoardGame[]>()
2323
{
24-
Data = new BoardGame[] {
24+
Data = new [] {
2525
new BoardGame() {
2626
Id = 1,
2727
Name = "Axis & Allies",
@@ -30,7 +30,7 @@ public RestDTO<BoardGame[]> Get()
3030
},
3131
new BoardGame() {
3232
Id = 2,
33-
Name = "Citadel",
33+
Name = "Citadels",
3434
Publisher = "Hans im Glück",
3535
Year = 2000
3636
},

Chapter_03/MyBGList_ApiVersion/Controllers/v2/BoardGamesController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public RestDTO<BoardGame[]> Get()
3030
},
3131
new BoardGame() {
3232
Id = 2,
33-
Name = "Citadel",
33+
Name = "Citadels",
3434
Publisher = "Hans im Glück",
3535
Year = 2000
3636
},

Chapter_04/DBSchemas/MyBGList_NoSQL.dmm

+10-10
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@
407407
"def_validationAction": "na",
408408
"def_collation": "",
409409
"def_others": "",
410-
"lastSaved": "Mon Jan 24 2022 03:57:03 GMT+0100 (Ora standard dell’Europa centrale)",
410+
"lastSaved": "Mon Jan 24 2022 04:41:12 GMT+0100 (Ora standard dell’Europa centrale)",
411411
"writeFileParam": false
412412
},
413413
"otherObjects": {},
@@ -426,8 +426,8 @@
426426
"diagramItems": {
427427
"bbecd557-691f-4574-afcd-ed71df802d9b": {
428428
"referencedItemId": "bbecd557-691f-4574-afcd-ed71df802d9b",
429-
"x": 468,
430-
"y": 235,
429+
"x": 552,
430+
"y": 266,
431431
"gHeight": 351,
432432
"gWidth": 261,
433433
"color": "#ffffff",
@@ -437,9 +437,9 @@
437437
},
438438
"b22f69f7-2839-4d48-a178-ef69894ac34a": {
439439
"referencedItemId": "b22f69f7-2839-4d48-a178-ef69894ac34a",
440-
"x": 780,
441-
"y": 610,
442-
"gHeight": 46,
440+
"x": 864,
441+
"y": 641,
442+
"gHeight": 52,
443443
"gWidth": 173,
444444
"color": "#ffffff",
445445
"background": "#8bc34a",
@@ -448,8 +448,8 @@
448448
},
449449
"12030846-413a-49c9-b5b1-1f359f474a14": {
450450
"referencedItemId": "12030846-413a-49c9-b5b1-1f359f474a14",
451-
"x": 250,
452-
"y": 539,
451+
"x": 334,
452+
"y": 570,
453453
"gHeight": 45,
454454
"gWidth": 176,
455455
"color": "#ffffff",
@@ -459,8 +459,8 @@
459459
}
460460
},
461461
"scroll": {
462-
"x": 0,
463-
"y": 0
462+
"left": 0,
463+
"top": 0
464464
}
465465
}
466466
},

0 commit comments

Comments
 (0)