# apead/bankingsampleapp architecture

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

- Interactive diagram: https://gitdiagram.com/apead/bankingsampleapp
- Repository: https://github.com/apead/bankingsampleapp

## Overview

BankingApp is a .NET MAUI banking client for browsing customers, their accounts, and account transactions, with a transaction-entry flow that validates and confirms deposits or withdrawals. The shown flow loads customer and account data from a local SQLite database and displays transactions; the deposit button routes to transaction entry, while the withdrawal button’s handler is empty in the excerpt. Source excerpts establish the view-to-service calls and local database behavior. The README is empty, so additional capabilities cannot be confirmed.

Main entry points: [`BankingApp/Services/BankingDatabaseService.cs`](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Services/BankingDatabaseService.cs) (Banking data service), [`BankingApp/Views/CustomerListView.xaml.cs`](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/CustomerListView.xaml.cs) (Customer search), [`BankingApp/Views/CustomerAccountsView.xaml.cs`](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/CustomerAccountsView.xaml.cs) (Customer accounts), [`BankingApp/Views/BankAccountTransactionView.xaml.cs`](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/BankAccountTransactionView.xaml.cs) (Account activity)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Banking screens"]
  node_customer_list["Customer search"]
  node_customer_accounts["Customer accounts"]
  node_account_transactions["Account activity"]
  node_transaction_entry["Transaction entry"]
end

subgraph group_data["Banking data"]
  node_db_service["Banking data service"]
  node_local_db[("Local SQLite database<br/>[banking.db]")]
  node_models["Banking records and types"]
  node_transaction_enum["Transaction choices"]
end

subgraph group_runtime["App runtime"]
  node_startup["MAUI setup<br/>[MauiProgram.cs]"]
end

node_user(("Banking user"))

node_user -.->|"browses"| node_customer_list
node_startup -->|"registers"| node_db_service
node_customer_list -->|"searches customers"| node_db_service
node_customer_list -->|"navigates"| node_customer_accounts
node_customer_accounts -->|"loads accounts"| node_db_service
node_customer_accounts -->|"opens account"| node_account_transactions
node_account_transactions -->|"loads transactions"| node_db_service
node_account_transactions -->|"opens deposit"| node_transaction_entry
node_transaction_entry -->|"selects type"| node_transaction_enum
node_transaction_entry -->|"submits transaction"| node_db_service
node_db_service -->|"opens or copies"| node_local_db
node_db_service -->|"queries and updates"| node_models
node_db_service -->|"uses transaction type"| node_transaction_enum

click node_startup "https://github.com/apead/bankingsampleapp/blob/master/BankingApp/MauiProgram.cs"
click node_customer_list "https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/CustomerListView.xaml.cs"
click node_customer_accounts "https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/CustomerAccountsView.xaml.cs"
click node_account_transactions "https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/BankAccountTransactionView.xaml.cs"
click node_transaction_entry "https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/TransactionRecordView.xaml.cs"
click node_db_service "https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Services/BankingDatabaseService.cs"
click node_local_db "https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Resources/Raw/banking.db"
click node_models "https://github.com/apead/bankingsampleapp/tree/master/BankingApp/Models"
click node_transaction_enum "https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Enums/TransactionTypeEnum.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_customer_list,node_customer_accounts,node_account_transactions,node_transaction_entry,node_user toneBlue
class node_db_service,node_local_db,node_models,node_transaction_enum toneAmber
class node_startup toneMint
```

## Components

### Banking screens

- [Customer search](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/CustomerListView.xaml.cs): `BankingApp/Views/CustomerListView.xaml.cs`
- [Customer accounts](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/CustomerAccountsView.xaml.cs): `BankingApp/Views/CustomerAccountsView.xaml.cs`
- [Account activity](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/BankAccountTransactionView.xaml.cs): `BankingApp/Views/BankAccountTransactionView.xaml.cs`
- [Transaction entry](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Views/TransactionRecordView.xaml.cs): `BankingApp/Views/TransactionRecordView.xaml.cs`

### Banking data

- [Banking data service](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Services/BankingDatabaseService.cs): `BankingApp/Services/BankingDatabaseService.cs`
- [Local SQLite database](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Resources/Raw/banking.db): `BankingApp/Resources/Raw/banking.db`
- [Banking records and types](https://github.com/apead/bankingsampleapp/tree/master/BankingApp/Models): `BankingApp/Models`
- [Transaction choices](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/Enums/TransactionTypeEnum.cs): `BankingApp/Enums/TransactionTypeEnum.cs`

### App runtime

- [MAUI setup](https://github.com/apead/bankingsampleapp/blob/master/BankingApp/MauiProgram.cs): `BankingApp/MauiProgram.cs`

### Other components

- **Banking user**

## Connections

- Banking user → Customer search: browses
- MAUI setup → Banking data service: registers (evidence: `BankingApp/MauiProgram.cs`)
- Customer search → Banking data service: searches customers (evidence: `BankingApp/Views/CustomerListView.xaml.cs`)
- Customer search → Customer accounts: navigates (evidence: `BankingApp/Views/CustomerListView.xaml.cs`)
- Customer accounts → Banking data service: loads accounts (evidence: `BankingApp/Views/CustomerAccountsView.xaml.cs`)
- Customer accounts → Account activity: opens account (evidence: `BankingApp/Views/CustomerAccountsView.xaml.cs`)
- Account activity → Banking data service: loads transactions (evidence: `BankingApp/Views/BankAccountTransactionView.xaml.cs`)
- Account activity → Transaction entry: opens deposit (evidence: `BankingApp/Views/BankAccountTransactionView.xaml.cs`)
- Transaction entry → Transaction choices: selects type (evidence: `BankingApp/Views/TransactionRecordView.xaml.cs`)
- Transaction entry → Banking data service: submits transaction (evidence: `BankingApp/Views/TransactionRecordView.xaml.cs`)
- Banking data service → Local SQLite database: opens or copies (evidence: `BankingApp/Services/BankingDatabaseService.cs`)
- Banking data service → Banking records and types: queries and updates (evidence: `BankingApp/Services/BankingDatabaseService.cs`)
- Banking data service → Transaction choices: uses transaction type (evidence: `BankingApp/Services/BankingDatabaseService.cs`)
