OElite.Data.Platform 5.0.9-develop.7331
OElite.Data.Platform
Platform-specific data access layer: PlatformDb, PlatformDbRepository, MongoDB index management, and audit log repository.
Overview
OElite.Data.Platform extends OElite.Data with platform-specific repositories and infrastructure for the OElite eCommerce Platform. It provides the PlatformDb MongoDB centre, the PlatformDbRepository base class, automated MongoDB index management, and an AuditLogRepository for compliance and audit trail storage.
This package is consumed by OElite.Services.Platform (business logic services) and any other OElite application that needs to read/write platform entities.
Features
🗃️ Platform Database Access
PlatformDb: MongoDB centre configured for the Platform's databasePlatformDbRepository: Base class for Platform entity repositoriesIDataRepository: Common interface for dependency injection
🔍 MongoDB Index Management
MongoIndexes: Declarative index definitions for all Platform collections- Indexes are created at startup; no manual index management required
- Supports compound, unique, and TTL indexes
📜 Audit Trail
AuditLogRepository: Persists audit log entries for compliance- Captures user actions, IP, timestamp, and entity changes
🏢 Domain Repositories
- Pre-built repositories for every Platform entity:
Customer,Order,Product,Payment,Inventory,Merchant,Role,Tenant,Settings,OmniChannel, etc. - Consistent async API across all repositories
- All inherit from
PlatformDbRepository
Quick Start
1. Installation
dotnet add package OElite.Data.Platform
2. Use a Platform Repository
using OElite.Data.Platform;
using OElite.Data.Platform.Biz.Orders;
public class OrderService
{
private readonly OrderRepository _orders;
private readonly PlatformDb _db;
public OrderService(OrderRepository orders, PlatformDb db)
{
_orders = orders;
_db = db;
}
public async Task<Order?> GetOrderAsync(string id)
{
return await _orders.GetByIdAsync(id);
}
}
Dependencies
- OElite.Data (DataRepository base, DbCentre)
- OElite.Common (BaseEntity, attributes)
- OElite.Common.Platform (Platform entity definitions)
- OElite.Restme 2.x, OElite.Restme.MongoDb 2.x, OElite.Restme.Utils 2.x
Related Packages
- OElite.Services.Platform - Business logic that uses these repositories
- OElite.Common.Hosting.AspNetCore - DI auto-discovery for repositories
License
Copyright (c) Phanes. All rights reserved.
Showing the top 20 packages that depend on OElite.Data.Platform.
| Packages | Downloads |
|---|---|
|
OElite.Services.Platform
Package Description
|
17 |
|
OElite.Services.Platform
Package Description
|
14 |
|
OElite.Services.Platform
Package Description
|
8 |
|
OElite.Services.Platform
Package Description
|
6 |
|
OElite.Services.Platform
Package Description
|
5 |
|
OElite.Services.Platform
Package Description
|
4 |
|
OElite.Services.Platform
Package Description
|
3 |
.NET 10.0
- OElite.Common.Platform (>= 5.0.9-develop.7331)
- OElite.Data (>= 5.0.9-develop.7331)