Mango.Nop.Libraries/Mango.Nop.Data/README.md

24 lines
858 B
Markdown

# Mango.Nop.Data
Data access layer with repository base classes and DB context abstractions. **net9.0**.
## Folder Structure
| Folder | Purpose |
|---|---|
| `Interfaces/` | Repository interfaces: `IMgDalBase`, `IMgDbContextBase`, `IMgDbTableBase` |
| `Repositories/` | Repository base implementations: `MgDalBase`, `MgDbContextBase`, `MgDbTableBase`, `MgDtoDbTableBase` |
## Key Types
- **`MgDalBase`** — Data Access Layer base class
- **`MgDbContextBase`** — Database context base for nopCommerce integration
- **`MgDbTableBase`** — Table-level repository base (entity → DB operations)
- **`MgDtoDbTableBase`** — DTO-aware table base — handles DTO ↔ entity mapping
## Dependencies
- `Mango.Nop.Core` (ProjectReference)
- `Nop.Core`, `Nop.Data` (nopCommerce ProjectReferences)
- `MessagePack`, `Microsoft.AspNetCore.Mvc.NewtonsoftJson`