# mflenov/csharpbible architecture

> Architecture diagram of the GitHub repository mflenov/csharpbible, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-31). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mflenov/csharpbible
- Repository: https://github.com/mflenov/csharpbible

## Overview

##### Main Components

a) Learning Modules (Chapters):
- Basic C# (Chapters 1-5)
- Advanced C# Features (Chapters 6-9)
- Data Access & LINQ (Chapters 10)
- File Operations (Chapter 11)
- Threading & Async (Chapter 12)
- Web Development (Chapter 13)
- Database Access (Chapters 14-15)
- Project Architecture (Chapter 16)
- API Development (Chapter 17)

b) Technology Stacks:
- .NET 7 Runtime
- ASP.NET Core (Web Applications)
- Entity Framework (Data Access)
- Windows Forms (Desktop UI)
- Web API

- Web Apps      |  Windows Forms |    Console    |
- (Chapter 13)   | (Chapter 9)    | Applications  |

- Business Logic                      |

- LINQ & Lambda  |  |      Entity Framework     | |
- (Chapter 10)   |  |      (Chapter 14-15)     | |

- Threading     |  |    File Operations        | |
- (Chapter 12)   |  |      (Chapter 11)        | |

- Data & Infrastructure                 |

- Database     |  |     File System          | |
- Access       |  |                          | |

##### Connection Types

- Double lines: Two-way communication

##### Component Details

For each major component, include:
- Component name
- Related chapter reference
- Key classes/interfaces
- Primary responsibilities

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Presentation
        WA["Web Applications"]:::web
        WF["Windows Forms"]:::desktop
        CA["Console Applications"]:::desktop
    end

    subgraph "Business Logic"
        BL["Business Logic Layer"]:::logic
        
        subgraph "Core Operations"
            LL["LINQ & Lambda"]:::logic
            click LL "https://github.com/mflenov/csharpbible/tree/main/Chapter10/LinqObjects"
            
            TO["Threading & Async"]:::logic
            click TO "https://github.com/mflenov/csharpbible/tree/main/Chapter12/TaskSample"
            
            FO["File Operations"]:::logic
            click FO "https://github.com/mflenov/csharpbible/tree/main/Chapter11/FileStreamProject"
        end
        
        subgraph "Data Processing"
            EF["Entity Framework"]:::data
            click EF "https://github.com/mflenov/csharpbible/tree/main/Chapter15/CodeFirst"
            
            DA["Data Access"]:::data
            click DA "https://github.com/mflenov/csharpbible/tree/main/Chapter14/Connection"
        end
    end

    subgraph "Web Components"
        API["API Controllers"]:::web
        click API "https://github.com/mflenov/csharpbible/tree/main/Chapter17/TestApi"
        
        MVC["MVC Components"]:::web
        click MVC "https://github.com/mflenov/csharpbible/tree/main/Chapter13/Components"
        
        Auth["Authentication/Session"]:::web
        click Auth "https://github.com/mflenov/csharpbible/tree/main/Chapter13/Session"
    end

    subgraph "Data & Infrastructure"
        DB[(Database)]:::data
        FS["File System"]:::infra
        click FS "https://github.com/mflenov/csharpbible/tree/main/Chapter11/DirFileProject"
    end

    %% Connections
    WA --> MVC
    WA --> API
    WA --> Auth
    
    MVC --> BL
    API --> BL
    WF --> BL
    CA --> BL
    
    BL --> LL
    BL --> TO
    BL --> FO
    BL --> EF
    BL --> DA
    
    DA --> DB
    EF --> DB
    FO --> FS

    %% Styles
    classDef web fill:#3498db,stroke:#2980b9,color:white
    classDef desktop fill:#2ecc71,stroke:#27ae60,color:white
    classDef data fill:#f1c40f,stroke:#f39c12,color:black
    classDef logic fill:#e67e22,stroke:#d35400,color:white
    classDef infra fill:#95a5a6,stroke:#7f8c8d,color:white

    %% Legend
    subgraph Legend
        L1["Web Component"]:::web
        L2["Desktop Component"]:::desktop
        L3["Data Component"]:::data
        L4["Business Logic"]:::logic
        L5["Infrastructure"]:::infra
    end
```
