# markjprice/cs14net10 architecture

> Architecture diagram of the GitHub repository markjprice/cs14net10, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/markjprice/cs14net10
- Repository: https://github.com/markjprice/cs14net10

## Overview

This repository is a book companion containing runnable C#/.NET examples, not a single application. The main user journey is a learner selecting a chapter’s code and running examples that progress from language fundamentals through libraries, data access, and web development. ModernWeb also demonstrates a Northwind web/API-to-data-context workflow. The README establishes the chapter capabilities; implementation links are shown only where excerpts or the source index support them, so many example-to-example links are intentionally omitted.

Main entry points: [`code/ModernWeb/Northwind.DataContext.Sqlite/NorthwindContext.cs`](https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.DataContext.Sqlite/NorthwindContext.cs) (Northwind Context), [`code/Chapter05/PeopleApp/Program.cs`](https://github.com/markjprice/cs14net10/blob/main/code/Chapter05/PeopleApp/Program.cs) (People App Examples), [`code/Chapter09/WorkingWithStreams/Program.cs`](https://github.com/markjprice/cs14net10/blob/main/code/Chapter09/WorkingWithStreams/Program.cs) (File and Stream Examples), [`code/Chapter11/LinqWithEFCore/Program.Functions.cs`](https://github.com/markjprice/cs14net10/blob/main/code/Chapter11/LinqWithEFCore/Program.Functions.cs) (LINQ with EF Core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_language["C&#35; Language"]
  node_intro["C&#35; Introduction"]
  node_language_basics["Language Basics"]
  node_flow["Flow and Exceptions"]
  node_functions["Functions and Debugging"]
  node_oop["Object-Oriented Types"]
  node_interfaces["Interfaces and Inheritance"]
  node_people_app["People App Examples<br/>[Program.cs]"]
  node_modern_types["Modern Type Examples"]
  node_net2_types["Library Type Examples"]
end

subgraph group_libraries[".NET Libraries"]
  node_common_types["Common .NET Types"]
  node_file_streams["File and Stream Examples<br/>[Program.cs]"]
  node_stream_data["Stream Callsigns<br/>[Viper.cs]"]
end

subgraph group_data["Data Access"]
  node_data_ef["EF Core Examples"]
  node_linq_ef["LINQ with EF Core"]
  node_northwind_context["Northwind Context"]
  node_northwind_models["Northwind Entities<br/>[Order.cs]"]
  node_sqlite[("SQLite Database")]
end

subgraph group_web["Modern Web"]
  node_website["ASP.NET Core Website<br/>[Program.cs]"]
  node_api_customers["Customer API Routes"]
  node_blazor["Blazor Examples<br/>[Northwind.Blazor]"]
end

node_learner(("Learner"))

node_learner -->|"selects chapter"| node_intro
node_learner -->|"selects chapter"| node_language_basics
node_learner -->|"selects chapter"| node_flow
node_learner -->|"selects chapter"| node_functions
node_learner -->|"selects chapter"| node_oop
node_learner -->|"selects chapter"| node_interfaces
node_learner -->|"selects chapter"| node_common_types
node_learner -->|"selects chapter"| node_file_streams
node_learner -->|"selects chapter"| node_data_ef
node_learner -->|"selects chapter"| node_linq_ef
node_learner -->|"selects chapter"| node_website
node_learner -->|"selects chapter"| node_blazor
node_people_app -->|"uses types"| node_modern_types
node_people_app -->|"uses types"| node_net2_types
node_file_streams -->|"writes callsigns"| node_stream_data
node_linq_ef -->|"queries data"| node_data_ef
node_northwind_context -->|"configures provider"| node_sqlite
node_northwind_context -->|"maps entities"| node_northwind_models
node_api_customers -->|"queries and saves"| node_northwind_context

click node_intro "https://github.com/markjprice/cs14net10/tree/main/code/Chapter01"
click node_language_basics "https://github.com/markjprice/cs14net10/tree/main/code/Chapter02"
click node_flow "https://github.com/markjprice/cs14net10/tree/main/code/Chapter03"
click node_functions "https://github.com/markjprice/cs14net10/tree/main/code/Chapter04"
click node_oop "https://github.com/markjprice/cs14net10/tree/main/code/Chapter05"
click node_interfaces "https://github.com/markjprice/cs14net10/tree/main/code/Chapter06"
click node_people_app "https://github.com/markjprice/cs14net10/blob/main/code/Chapter05/PeopleApp/Program.cs"
click node_modern_types "https://github.com/markjprice/cs14net10/tree/main/code/Chapter05/PacktLibraryModern"
click node_net2_types "https://github.com/markjprice/cs14net10/tree/main/code/Chapter05/PacktLibraryNet2"
click node_common_types "https://github.com/markjprice/cs14net10/tree/main/code/Chapter08"
click node_file_streams "https://github.com/markjprice/cs14net10/blob/main/code/Chapter09/WorkingWithStreams/Program.cs"
click node_stream_data "https://github.com/markjprice/cs14net10/blob/main/code/Chapter09/WorkingWithStreams/Viper.cs"
click node_data_ef "https://github.com/markjprice/cs14net10/tree/main/code/Chapter10/WorkingWithEFCore"
click node_linq_ef "https://github.com/markjprice/cs14net10/blob/main/code/Chapter11/LinqWithEFCore/Program.Functions.cs"
click node_northwind_context "https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.DataContext.Sqlite/NorthwindContext.cs"
click node_northwind_models "https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.EntityModels.Sqlite/Order.cs"
click node_website "https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.Web/Program.cs"
click node_api_customers "https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.WebApi/Program.Customers.cs"
click node_blazor "https://github.com/markjprice/cs14net10/tree/main/code/ModernWeb/Northwind.Blazor"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_intro,node_language_basics,node_flow,node_functions,node_oop,node_interfaces,node_people_app,node_modern_types,node_net2_types toneBlue
class node_common_types,node_file_streams,node_stream_data toneAmber
class node_data_ef,node_linq_ef,node_northwind_context,node_northwind_models,node_sqlite toneMint
class node_website,node_api_customers,node_blazor toneRose
class node_learner toneIndigo
```

## Components

### C# Language

- [C# Introduction](https://github.com/markjprice/cs14net10/tree/main/code/Chapter01): `code/Chapter01`
- [Language Basics](https://github.com/markjprice/cs14net10/tree/main/code/Chapter02): `code/Chapter02`
- [Flow and Exceptions](https://github.com/markjprice/cs14net10/tree/main/code/Chapter03): `code/Chapter03`
- [Functions and Debugging](https://github.com/markjprice/cs14net10/tree/main/code/Chapter04): `code/Chapter04`
- [Object-Oriented Types](https://github.com/markjprice/cs14net10/tree/main/code/Chapter05): `code/Chapter05`
- [Interfaces and Inheritance](https://github.com/markjprice/cs14net10/tree/main/code/Chapter06): `code/Chapter06`
- [People App Examples](https://github.com/markjprice/cs14net10/blob/main/code/Chapter05/PeopleApp/Program.cs): `code/Chapter05/PeopleApp/Program.cs`
- [Modern Type Examples](https://github.com/markjprice/cs14net10/tree/main/code/Chapter05/PacktLibraryModern): `code/Chapter05/PacktLibraryModern`
- [Library Type Examples](https://github.com/markjprice/cs14net10/tree/main/code/Chapter05/PacktLibraryNet2): `code/Chapter05/PacktLibraryNet2`

### .NET Libraries

- [Common .NET Types](https://github.com/markjprice/cs14net10/tree/main/code/Chapter08): `code/Chapter08`
- [File and Stream Examples](https://github.com/markjprice/cs14net10/blob/main/code/Chapter09/WorkingWithStreams/Program.cs): `code/Chapter09/WorkingWithStreams/Program.cs`
- [Stream Callsigns](https://github.com/markjprice/cs14net10/blob/main/code/Chapter09/WorkingWithStreams/Viper.cs): `code/Chapter09/WorkingWithStreams/Viper.cs`

### Data Access

- [EF Core Examples](https://github.com/markjprice/cs14net10/tree/main/code/Chapter10/WorkingWithEFCore): `code/Chapter10/WorkingWithEFCore`
- [LINQ with EF Core](https://github.com/markjprice/cs14net10/blob/main/code/Chapter11/LinqWithEFCore/Program.Functions.cs): `code/Chapter11/LinqWithEFCore/Program.Functions.cs`
- [Northwind Context](https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.DataContext.Sqlite/NorthwindContext.cs): `code/ModernWeb/Northwind.DataContext.Sqlite/NorthwindContext.cs`
- [Northwind Entities](https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.EntityModels.Sqlite/Order.cs): `code/ModernWeb/Northwind.EntityModels.Sqlite/Order.cs`
- **SQLite Database**

### Modern Web

- [ASP.NET Core Website](https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.Web/Program.cs): `code/ModernWeb/Northwind.Web/Program.cs`
- [Customer API Routes](https://github.com/markjprice/cs14net10/blob/main/code/ModernWeb/Northwind.WebApi/Program.Customers.cs): `code/ModernWeb/Northwind.WebApi/Program.Customers.cs`
- [Blazor Examples](https://github.com/markjprice/cs14net10/tree/main/code/ModernWeb/Northwind.Blazor): `code/ModernWeb/Northwind.Blazor`

### Other components

- **Learner**

## Connections

- Learner → C# Introduction: selects chapter (evidence: `README.md`)
- Learner → Language Basics: selects chapter (evidence: `README.md`)
- Learner → Flow and Exceptions: selects chapter (evidence: `README.md`)
- Learner → Functions and Debugging: selects chapter (evidence: `README.md`)
- Learner → Object-Oriented Types: selects chapter (evidence: `README.md`)
- Learner → Interfaces and Inheritance: selects chapter (evidence: `README.md`)
- Learner → Common .NET Types: selects chapter (evidence: `README.md`)
- Learner → File and Stream Examples: selects chapter (evidence: `README.md`)
- Learner → EF Core Examples: selects chapter (evidence: `README.md`)
- Learner → LINQ with EF Core: selects chapter (evidence: `README.md`)
- Learner → ASP.NET Core Website: selects chapter (evidence: `README.md`)
- Learner → Blazor Examples: selects chapter (evidence: `README.md`)
- People App Examples → Modern Type Examples: uses types (evidence: `code/Chapter05/PeopleApp/Program.cs`)
- People App Examples → Library Type Examples: uses types (evidence: `code/Chapter05/PeopleApp/Program.cs`)
- File and Stream Examples → Stream Callsigns: writes callsigns (evidence: `code/Chapter09/WorkingWithStreams/Program.cs`)
- LINQ with EF Core → EF Core Examples: queries data (evidence: `code/Chapter11/LinqWithEFCore/Program.Functions.cs`)
- Northwind Context → SQLite Database: configures provider (evidence: `code/ModernWeb/Northwind.DataContext.Sqlite/NorthwindContext.cs`)
- Northwind Context → Northwind Entities: maps entities (evidence: `code/ModernWeb/Northwind.DataContext.Sqlite/NorthwindContext.cs`)
- Customer API Routes → Northwind Context: queries and saves (evidence: `code/ModernWeb/Northwind.WebApi/Program.Customers.cs`)
