# opencodefoundation/asset-manager architecture

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

- Interactive diagram: https://gitdiagram.com/opencodefoundation/asset-manager
- Repository: https://github.com/opencodefoundation/asset-manager

## Overview

Asset Manager is an ASP.NET application for maintaining an organization’s assets and related catalog data, locations, departments, users, and suppliers. The visible workflow is a web request handled by a controller, passed through a view-model service, and persisted through a repository and Entity Framework context. The tree documents additional inventory domains (accessories, consumables, components, licenses, maintenance, and checkout requests), but their runtime wiring was not sampled. The README provides no further capability details; edges below are limited to relationships shown in excerpts or the source index.

Main entry points: [`src/AssetManager.Infrastructure/Data/AssetManagerContext.cs`](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Data/AssetManagerContext.cs) (Asset database), [`src/AssetManager.Web/Service`](https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Web/Service) (View-model services), [`src/AssetManager.Core/Entities/Location.cs`](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Location.cs) (Locations), [`src/AssetManager.Core/Entities/AssetModels.cs`](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/AssetModels.cs) (Asset models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interaction"]
  node_account["Account access"]
  node_deptctl["Department requests"]
  node_catalogctl["Catalog controllers<br/>[Controllers]"]
  node_orgctl["Organization controllers<br/>[Controllers]"]
end

subgraph group_catalog["Catalog and organization"]
  node_department["Departments<br/>[Departments.cs]"]
  node_location["Locations<br/>[Location.cs]"]
  node_supplier["Suppliers<br/>[Supplier.cs]"]
  node_manufacturer["Manufacturers<br/>[Manufacturer.cs]"]
  node_category["Categories<br/>[Category.cs]"]
end

subgraph group_inventory["Inventory domain"]
  node_assetmodel["Asset models<br/>[AssetModels.cs]"]
  node_asset["Assets<br/>[Asset.cs]"]
  node_inventorytypes["Other inventory<br/>[Entities]"]
end

subgraph group_core["Core services"]
  node_viewservices["View-model services<br/>[Service]"]
  node_repository["EF repository<br/>[EfRepository.cs]"]
  node_entity["Entity base<br/>[Entity.cs]"]
end

subgraph group_persistence["Persistence and identity"]
  node_assetdb[("Asset database")]
  node_identity["User identity<br/>[ApplicationUser.cs]"]
  node_identitydb[("Identity database")]
end

node_user(("User"))

node_user -.->|"submits credentials"| node_account
node_user -.->|"requests changes"| node_deptctl
node_deptctl -->|"calls department service"| node_viewservices
node_deptctl -->|"requests location list"| node_location
node_viewservices -->|"uses repository"| node_repository
node_viewservices -->|"reads location data"| node_location
node_viewservices -->|"uses supplier entity"| node_supplier
node_viewservices -->|"uses manufacturer entity"| node_manufacturer
node_catalogctl -->|"uses view services"| node_viewservices
node_orgctl -->|"uses view services"| node_viewservices
node_repository -->|"queries and saves"| node_assetdb
node_assetdb -->|"maps entity"| node_asset
node_assetdb -->|"maps entity"| node_assetmodel
node_assetdb -->|"maps entity"| node_location
node_assetdb -->|"maps entity"| node_supplier
node_assetdb -->|"maps entity"| node_manufacturer
node_assetdb -->|"maps entity"| node_category
node_identity -->|"references location"| node_location
node_identity -->|"references department"| node_department
node_identitydb -->|"stores user"| node_identity
node_account -->|"creates and signs in"| node_identity
node_asset -->|"references model"| node_assetmodel
node_assetmodel -->|"references manufacturer"| node_manufacturer
node_assetmodel -->|"references category"| node_category
node_asset -->|"inherits"| node_entity
node_location -->|"inherits"| node_entity
node_repository -->|"constrained by base"| node_entity

click node_account "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Web/Controllers/AccountController.cs"
click node_deptctl "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Web/Controllers/DepartmentsController.cs"
click node_catalogctl "https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Web/Controllers"
click node_orgctl "https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Web/Controllers"
click node_department "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Departments.cs"
click node_location "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Location.cs"
click node_supplier "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Supplier.cs"
click node_manufacturer "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Manufacturer.cs"
click node_category "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Category.cs"
click node_assetmodel "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/AssetModels.cs"
click node_asset "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Asset.cs"
click node_inventorytypes "https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Core/Entities"
click node_viewservices "https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Web/Service"
click node_repository "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Data/EfRepository.cs"
click node_entity "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/SharedKernel/Entity.cs"
click node_assetdb "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Data/AssetManagerContext.cs"
click node_identity "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Identity/ApplicationUser.cs"
click node_identitydb "https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Identity/AppIdentityDbContext.cs"

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_account,node_deptctl,node_catalogctl,node_orgctl,node_user toneBlue
class node_department,node_location,node_supplier,node_manufacturer,node_category toneAmber
class node_assetmodel,node_asset,node_inventorytypes toneMint
class node_viewservices,node_repository,node_entity toneRose
class node_assetdb,node_identity,node_identitydb toneIndigo
```

## Components

### Web interaction

- [Account access](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Web/Controllers/AccountController.cs): `src/AssetManager.Web/Controllers/AccountController.cs`
- [Department requests](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Web/Controllers/DepartmentsController.cs): `src/AssetManager.Web/Controllers/DepartmentsController.cs`
- [Catalog controllers](https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Web/Controllers): `src/AssetManager.Web/Controllers`
- [Organization controllers](https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Web/Controllers): `src/AssetManager.Web/Controllers`

### Catalog and organization

- [Departments](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Departments.cs): `src/AssetManager.Core/Entities/Departments.cs`
- [Locations](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Location.cs): `src/AssetManager.Core/Entities/Location.cs`
- [Suppliers](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Supplier.cs): `src/AssetManager.Core/Entities/Supplier.cs`
- [Manufacturers](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Manufacturer.cs): `src/AssetManager.Core/Entities/Manufacturer.cs`
- [Categories](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Category.cs): `src/AssetManager.Core/Entities/Category.cs`

### Inventory domain

- [Asset models](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/AssetModels.cs): `src/AssetManager.Core/Entities/AssetModels.cs`
- [Assets](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/Entities/Asset.cs): `src/AssetManager.Core/Entities/Asset.cs`
- [Other inventory](https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Core/Entities): `src/AssetManager.Core/Entities`

### Core services

- [View-model services](https://github.com/opencodefoundation/asset-manager/tree/master/src/AssetManager.Web/Service): `src/AssetManager.Web/Service`
- [EF repository](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Data/EfRepository.cs): `src/AssetManager.Infrastructure/Data/EfRepository.cs`
- [Entity base](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Core/SharedKernel/Entity.cs): `src/AssetManager.Core/SharedKernel/Entity.cs`

### Persistence and identity

- [Asset database](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Data/AssetManagerContext.cs): `src/AssetManager.Infrastructure/Data/AssetManagerContext.cs`
- [User identity](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Identity/ApplicationUser.cs): `src/AssetManager.Infrastructure/Identity/ApplicationUser.cs`
- [Identity database](https://github.com/opencodefoundation/asset-manager/blob/master/src/AssetManager.Infrastructure/Identity/AppIdentityDbContext.cs): `src/AssetManager.Infrastructure/Identity/AppIdentityDbContext.cs`

### Other components

- **User**

## Connections

- User → Account access: submits credentials
- User → Department requests: requests changes
- Department requests → View-model services: calls department service (evidence: `src/AssetManager.Web/Controllers/DepartmentsController.cs`)
- Department requests → Locations: requests location list (evidence: `src/AssetManager.Web/Controllers/DepartmentsController.cs`)
- View-model services → EF repository: uses repository (evidence: `src/AssetManager.Web/Service/LocationViewModelService.cs`)
- View-model services → Locations: reads location data (evidence: `src/AssetManager.Web/Service/LocationViewModelService.cs`)
- View-model services → Suppliers: uses supplier entity (evidence: `src/AssetManager.Web/Service/SupplierViewModelService.cs`)
- View-model services → Manufacturers: uses manufacturer entity (evidence: `src/AssetManager.Web/Service/ManufacturerViewModelService.cs`)
- Catalog controllers → View-model services: uses view services (evidence: `src/AssetManager.Web/Controllers/CategoriesController.cs`)
- Organization controllers → View-model services: uses view services (evidence: `src/AssetManager.Web/Controllers/LocationsController.cs`)
- EF repository → Asset database: queries and saves (evidence: `src/AssetManager.Infrastructure/Data/EfRepository.cs`)
- Asset database → Assets: maps entity (evidence: `src/AssetManager.Infrastructure/Data/AssetManagerContext.cs`)
- Asset database → Asset models: maps entity (evidence: `src/AssetManager.Infrastructure/Data/AssetManagerContext.cs`)
- Asset database → Locations: maps entity (evidence: `src/AssetManager.Infrastructure/Data/AssetManagerContext.cs`)
- Asset database → Suppliers: maps entity (evidence: `src/AssetManager.Infrastructure/Data/AssetManagerContext.cs`)
- Asset database → Manufacturers: maps entity (evidence: `src/AssetManager.Infrastructure/Data/AssetManagerContext.cs`)
- Asset database → Categories: maps entity (evidence: `src/AssetManager.Infrastructure/Data/AssetManagerContext.cs`)
- User identity → Locations: references location (evidence: `src/AssetManager.Infrastructure/Identity/ApplicationUser.cs`)
- User identity → Departments: references department (evidence: `src/AssetManager.Infrastructure/Identity/ApplicationUser.cs`)
- Identity database → User identity: stores user (evidence: `src/AssetManager.Infrastructure/Identity/AppIdentityDbContext.cs`)
- Account access → User identity: creates and signs in (evidence: `src/AssetManager.Web/Controllers/AccountController.cs`)
- Assets → Asset models: references model (evidence: `src/AssetManager.Core/Entities/Asset.cs`)
- Asset models → Manufacturers: references manufacturer (evidence: `src/AssetManager.Core/Entities/AssetModels.cs`)
- Asset models → Categories: references category (evidence: `src/AssetManager.Core/Entities/AssetModels.cs`)
- Assets → Entity base: inherits (evidence: `src/AssetManager.Core/Entities/Asset.cs`)
- Locations → Entity base: inherits (evidence: `src/AssetManager.Core/Entities/Location.cs`)
- EF repository → Entity base: constrained by base (evidence: `src/AssetManager.Infrastructure/Data/EfRepository.cs`)
