# nait-sdev2301/sdev2301-1261-a01-instructor-workbook architecture

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

- Interactive diagram: https://gitdiagram.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook
- Repository: https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook

## Overview

This is an instructor workbook of independent C# examples, not one integrated product. Its broadest application example is a Blazor/EF Core reference app: the application configures the database context and business services, while shipment operations create contexts and query or update shipment data. Other lessons demonstrate introductory C#, LINQ, EF Core, and Blazor service registration. The README describes the repository as selected class examples, not complete exercise solutions. Connections are shown only where the excerpts or source index support them; the workbook’s separate examples should not be read as one runtime pipeline.

Main entry points: [`Sdev2301.BlazorIntro/Program.cs`](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Program.cs) (Blazor Intro App), [`WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/Westwind.BlazorApp/Program.cs`](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/Westwind.BlazorApp/Program.cs) (Blazor App Setup), [`WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/DonW/ShipmentService.cs`](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/DonW/ShipmentService.cs) (Shipment Service), [`WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/DAL/WestWindContext.cs`](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/DAL/WestWindContext.cs) (Westwind Context)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["C&#35; Fundamentals"]
  node_hello["Hello Example<br/>[Hello.cs]"]
end

subgraph group_data["Data Lessons"]
  node_linq["LINQ Exercises<br/>[Program.cs]"]
  node_linqmodels["LINQ Models"]
  node_efintro["EF Core Intro<br/>[Program.cs]"]
  node_efcrud["EF CRUD Example<br/>[Program.cs]"]
end

subgraph group_blazor["Blazor Examples"]
  node_introapp["Blazor Intro App<br/>[Program.cs]"]
  node_introcontext[("Intro Data Context<br/>[AppDbContext.cs]")]
  node_productservice["Product Service<br/>[ProductService.cs]"]
  node_categoryservice["Category Service<br/>[CategoryService.cs]"]
  node_displayservice["Display Service"]
end

subgraph group_westwind["Westwind Reference App"]
  node_westwindapp["Blazor App Setup<br/>[Program.cs]"]
  node_shipmentservice["Shipment Service<br/>[ShipmentService.cs]"]
  node_shipperservice["Shipper Service<br/>[ShipperService.cs]"]
  node_westwindcontext[("Westwind Context<br/>[WestWindContext.cs]")]
  node_entities["Domain Entities"]
end

node_learner(("Learner"))

node_learner -.->|"runs example"| node_hello
node_linq -->|"queries data"| node_linqmodels
node_introapp -->|"configures factory"| node_introcontext
node_introapp -->|"registers service"| node_productservice
node_introapp -->|"registers service"| node_categoryservice
node_introapp -->|"registers service"| node_displayservice
node_westwindapp -->|"configures factory"| node_westwindcontext
node_westwindapp -->|"registers service"| node_shipmentservice
node_westwindapp -->|"registers service"| node_shipperservice
node_shipmentservice -->|"queries and saves"| node_westwindcontext
node_westwindcontext -->|"maps entities"| node_entities
node_shipmentservice -->|"uses shipment records"| node_entities

click node_hello "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Lesson02/Hello.cs"
click node_linq "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Lesson13_LinqIntro/Lesson13_LinqIntro/Program.cs"
click node_linqmodels "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/tree/main/Lesson13_LinqIntro/Lesson13_LinqIntro"
click node_efintro "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Lesson16_IntroductionToEFCoreAndDbContext/Program.cs"
click node_efcrud "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Lesson17_EFCoreCRUDRelationships/Program.cs"
click node_introapp "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Program.cs"
click node_introcontext "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Data/AppDbContext.cs"
click node_productservice "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Services/ProductService.cs"
click node_categoryservice "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Services/CategoryService.cs"
click node_displayservice "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Services/ProductDisplayService.cs"
click node_westwindapp "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/Westwind.BlazorApp/Program.cs"
click node_shipmentservice "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/DonW/ShipmentService.cs"
click node_shipperservice "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/SamW/ShipperService.cs"
click node_westwindcontext "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/DAL/WestWindContext.cs"
click node_entities "https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/tree/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/Entities"

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_hello toneBlue
class node_linq,node_linqmodels,node_efintro,node_efcrud toneAmber
class node_introapp,node_introcontext,node_productservice,node_categoryservice,node_displayservice toneMint
class node_westwindapp,node_shipmentservice,node_shipperservice,node_westwindcontext,node_entities toneRose
class node_learner toneIndigo
```

## Components

### C# Fundamentals

- [Hello Example](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Lesson02/Hello.cs): `Lesson02/Hello.cs`

### Data Lessons

- [LINQ Exercises](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Lesson13_LinqIntro/Lesson13_LinqIntro/Program.cs): `Lesson13_LinqIntro/Lesson13_LinqIntro/Program.cs`
- [LINQ Models](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/tree/main/Lesson13_LinqIntro/Lesson13_LinqIntro): `Lesson13_LinqIntro/Lesson13_LinqIntro`
- [EF Core Intro](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Lesson16_IntroductionToEFCoreAndDbContext/Program.cs): `Lesson16_IntroductionToEFCoreAndDbContext/Program.cs`
- [EF CRUD Example](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Lesson17_EFCoreCRUDRelationships/Program.cs): `Lesson17_EFCoreCRUDRelationships/Program.cs`

### Blazor Examples

- [Blazor Intro App](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Program.cs): `Sdev2301.BlazorIntro/Program.cs`
- [Intro Data Context](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Data/AppDbContext.cs): `Sdev2301.BlazorIntro/Data/AppDbContext.cs`
- [Product Service](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Services/ProductService.cs): `Sdev2301.BlazorIntro/Services/ProductService.cs`
- [Category Service](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Services/CategoryService.cs): `Sdev2301.BlazorIntro/Services/CategoryService.cs`
- [Display Service](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/Sdev2301.BlazorIntro/Services/ProductDisplayService.cs): `Sdev2301.BlazorIntro/Services/ProductDisplayService.cs`

### Westwind Reference App

- [Blazor App Setup](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/Westwind.BlazorApp/Program.cs): `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/Westwind.BlazorApp/Program.cs`
- [Shipment Service](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/DonW/ShipmentService.cs): `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/DonW/ShipmentService.cs`
- [Shipper Service](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/SamW/ShipperService.cs): `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/SamW/ShipperService.cs`
- [Westwind Context](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/blob/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/DAL/WestWindContext.cs): `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/DAL/WestWindContext.cs`
- [Domain Entities](https://github.com/nait-sdev2301/sdev2301-1261-a01-instructor-workbook/tree/main/WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/Entities): `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/Entities`

### Other components

- **Learner**

## Connections

- Learner → Hello Example: runs example
- LINQ Exercises → LINQ Models: queries data (evidence: `Lesson13_LinqIntro/Lesson13_LinqIntro/Program.cs`)
- Blazor Intro App → Intro Data Context: configures factory (evidence: `Sdev2301.BlazorIntro/Program.cs`)
- Blazor Intro App → Product Service: registers service (evidence: `Sdev2301.BlazorIntro/Program.cs`)
- Blazor Intro App → Category Service: registers service (evidence: `Sdev2301.BlazorIntro/Program.cs`)
- Blazor Intro App → Display Service: registers service (evidence: `Sdev2301.BlazorIntro/Program.cs`)
- Blazor App Setup → Westwind Context: configures factory (evidence: `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/Westwind.BlazorApp/Program.cs`)
- Blazor App Setup → Shipment Service: registers service (evidence: `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/Westwind.BlazorApp/Program.cs`)
- Blazor App Setup → Shipper Service: registers service (evidence: `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/Westwind.BlazorApp/Program.cs`)
- Shipment Service → Westwind Context: queries and saves (evidence: `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/DonW/ShipmentService.cs`)
- Westwind Context → Domain Entities: maps entities (evidence: `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/DAL/WestWindContext.cs`)
- Shipment Service → Domain Entities: uses shipment records (evidence: `WestwindSolution_ReferenceImplmentationDemo/WestwindSolution/WestwindSystem/BLL/DonW/ShipmentService.cs`)
