Skip to content

Commit 3ec281c

Browse files
authored
Merge pull request #2 from erikshafer/renaming_projects
Renaming .NET Projects
2 parents 9452226 + b0186ec commit 3ec281c

20 files changed

+41
-25
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,44 @@
22

33
An application showing the absolute basics of event sourcing with [EventStoreDB (ESDB)](https://www.eventstore.com/).
44

5+
56
## 💡 Inspiration
67

78
Inspired by Nick Chapsas' video about [getting started with Event Sourcing in .NET](https://www.youtube.com/watch?v=n_o-xuuVtmw). This take however uses EventStoreDB as its, well, store of events!
89

9-
### 🤔 Mini-Log / Thoughts / Brian Dump
1010

11-
- **2024-May-21**:
11+
### 📄 Mini-Log / 🤔 Thoughts / 🧠 Brain Dump
12+
13+
This is not an Architectural Decision Records (ADRs) log. [This is just a tribute 🎶🎸](https://www.youtube.com/watch?v=Vdq3BtWDRq8).
14+
15+
<details>
16+
<summary><strong>2024-May-21</strong></summary>
17+
- For clarity, renamed the .NET console application projects.
18+
</details>
19+
<details>
20+
<summary><strong>2024-May-21</strong></summary>
1221
- Updated some code, fixed some bugs and typos.
1322
- Decided this repository will have multiple versions.
1423
- One that works nearly the same as Nick's original in-memory incarnation.
1524
- Another using ESDB and some of the most frequently used commands with the ESDB .NET client.
1625
- Could have a potential third version if there is some demand from the community.
1726
- Would appreciate feedback. That and questions could extend this even further, perhaps.
18-
- **2024-May-20**:
27+
</details>
28+
<details>
29+
<summary><strong>2024-May-20</strong></summary>
1930
- Watched Nick's initial video. Awesome. Wait, what if we did the same thing, but with ESDB?
2031
- Made this code repository and .NET solution.
2132
- Only the bare bones as of this commit. Will update to include some event sourcing best practices without "getting into the weeds" too much.
33+
</details>
34+
2235

2336
## 📺 Companion Video
2437

2538
A video will be posted on my [YouTube channel](https://www.youtube.com/@event-sourcing) soon.
2639

2740
Ideally on my birthday, May 22nd!
2841

42+
2943
## 🐋 Requirements
3044

3145
1. [Docker](https://www.docker.com/products/docker-desktop/)
@@ -89,6 +103,7 @@ dotnet run --project .\StudentEnrollment01\StudentEnrollment01.csproj
89103

90104
Instructions will go here, but will basically be the same as above!
91105

106+
92107
## 🔗 Resources
93108

94109
Erik Shafer (me):
@@ -101,6 +116,7 @@ Nick Chapsas:
101116
- [youtube.com/@nickchapsas](https://www.youtube.com/@nickchapsas) - YouTube channel
102117
- [Dometrain](https://dometrain.com/) - Courses crafted by real engineers for the real world.
103118

119+
104120
## License
105121

106122
To Be Determined.

StudentEnrollment00/Events/Event.cs renamed to StudentEnrollment01.InMemory/Events/Event.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment00.Events;
1+
namespace StudentEnrollment01.InMemory.Events;
22

33
public abstract class Event
44
{

StudentEnrollment00/Events/StudentCreated.cs renamed to StudentEnrollment01.InMemory/Events/StudentCreated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment00.Events;
1+
namespace StudentEnrollment01.InMemory.Events;
22

33
public class StudentCreated : Event
44
{

StudentEnrollment00/Events/StudentEnrolled.cs renamed to StudentEnrollment01.InMemory/Events/StudentEnrolled.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment00.Events;
1+
namespace StudentEnrollment01.InMemory.Events;
22

33
public class StudentEnrolled : Event
44
{

StudentEnrollment00/Events/StudentUnEnrolled.cs renamed to StudentEnrollment01.InMemory/Events/StudentUnEnrolled.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment00.Events;
1+
namespace StudentEnrollment01.InMemory.Events;
22

33
public class StudentUnEnrolled : Event
44
{

StudentEnrollment00/Events/StudentUpdated.cs renamed to StudentEnrollment01.InMemory/Events/StudentUpdated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment00.Events;
1+
namespace StudentEnrollment01.InMemory.Events;
22

33
public class StudentUpdated : Event
44
{

StudentEnrollment00/InMemoryDatabase.cs renamed to StudentEnrollment01.InMemory/InMemoryDatabase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using StudentEnrollment00.Events;
1+
using StudentEnrollment01.InMemory.Events;
22

3-
namespace StudentEnrollment00;
3+
namespace StudentEnrollment01.InMemory;
44

55
public sealed class InMemoryDatabase
66
{

StudentEnrollment00/Program.cs renamed to StudentEnrollment01.InMemory/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using StudentEnrollment00;
2-
using StudentEnrollment00.Events;
1+
using StudentEnrollment01.InMemory;
2+
using StudentEnrollment01.InMemory.Events;
33

44
var id = Guid.Parse("a662d446-4920-415e-8c2a-0dd4a6c58908");
55
var now = DateTime.Now;

StudentEnrollment00/Student.cs renamed to StudentEnrollment01.InMemory/Student.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using StudentEnrollment00.Events;
1+
using StudentEnrollment01.InMemory.Events;
22

3-
namespace StudentEnrollment00;
3+
namespace StudentEnrollment01.InMemory;
44

55
public class Student
66
{

StudentEnrollment01/Events/Event.cs renamed to StudentEnrollment02.Esdb/Events/Event.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment01.Events;
1+
namespace StudentEnrollment02.Esdb.Events;
22

33
public abstract record Event
44
{

StudentEnrollment01/Events/EventTypeMapper.cs renamed to StudentEnrollment02.Esdb/Events/EventTypeMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Concurrent;
22

3-
namespace StudentEnrollment01.Events;
3+
namespace StudentEnrollment02.Esdb.Events;
44

55
public class EventTypeMapper
66
{

StudentEnrollment01/Events/StudentCreated.cs renamed to StudentEnrollment02.Esdb/Events/StudentCreated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment01.Events;
1+
namespace StudentEnrollment02.Esdb.Events;
22

33
public record StudentCreated : Event
44
{

StudentEnrollment01/Events/StudentEmailChanged.cs renamed to StudentEnrollment02.Esdb/Events/StudentEmailChanged.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment01.Events;
1+
namespace StudentEnrollment02.Esdb.Events;
22

33
public record StudentEmailChanged : Event
44
{

StudentEnrollment01/Events/StudentEnrolled.cs renamed to StudentEnrollment02.Esdb/Events/StudentEnrolled.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment01.Events;
1+
namespace StudentEnrollment02.Esdb.Events;
22

33
public record StudentEnrolled : Event
44
{

StudentEnrollment01/Events/StudentWithdrawn.cs renamed to StudentEnrollment02.Esdb/Events/StudentWithdrawn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace StudentEnrollment01.Events;
1+
namespace StudentEnrollment02.Esdb.Events;
22

33
public record StudentWithdrawn : Event
44
{

StudentEnrollment01/Program.cs renamed to StudentEnrollment02.Esdb/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Text;
22
using System.Text.Json;
33
using EventStore.Client;
4-
using StudentEnrollment01.Events;
4+
using StudentEnrollment02.Esdb.Events;
55

66
// Register events to a singleton for ease-of-reference
77
EventTypeMapper.Instance.ToName(typeof(StudentCreated));

StudentEnrollment01/Student.cs renamed to StudentEnrollment02.Esdb/Student.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using StudentEnrollment01.Events;
1+
using StudentEnrollment02.Esdb.Events;
22

3-
namespace StudentEnrollment01;
3+
namespace StudentEnrollment02.Esdb;
44

55
public class Student
66
{

StudentEnrollmentConsoleApp.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentEnrollment01", "StudentEnrollment01\StudentEnrollment01.csproj", "{446FF6B7-B58B-4CFB-8E98-C5B3AED9BA4D}"
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentEnrollment02.Esdb", "StudentEnrollment02.Esdb\StudentEnrollment02.Esdb.csproj", "{446FF6B7-B58B-4CFB-8E98-C5B3AED9BA4D}"
44
EndProject
55
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{43721FA4-09D5-4B98-9684-8752B40047AD}"
66
ProjectSection(SolutionItems) = preProject
@@ -10,7 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1010
README.md = README.md
1111
EndProjectSection
1212
EndProject
13-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentEnrollment00", "StudentEnrollment00\StudentEnrollment00.csproj", "{B8D543AF-F986-4E50-AD1D-492B38A58ECF}"
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentEnrollment01.InMemory", "StudentEnrollment01.InMemory\StudentEnrollment01.InMemory.csproj", "{B8D543AF-F986-4E50-AD1D-492B38A58ECF}"
1414
EndProject
1515
Global
1616
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)