OElite.Data.Platform
5.0.9
dotnet add package OElite.Data.Platform --version 5.0.9
NuGet\Install-Package OElite.Data.Platform -Version 5.0.9
<PackageReference Include="OElite.Data.Platform" Version="5.0.9" />
<PackageVersion Include="OElite.Data.Platform" Version="5.0.9" />
<PackageReference Include="OElite.Data.Platform" />
paket add OElite.Data.Platform --version 5.0.9
#r "nuget: OElite.Data.Platform, 5.0.9"
#:package OElite.Data.Platform@5.0.9
#addin nuget:?package=OElite.Data.Platform&version=5.0.9
#tool nuget:?package=OElite.Data.Platform&version=5.0.9
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- OElite.Common.Platform (>= 5.0.9)
- OElite.Data (>= 5.0.9)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OElite.Data.Platform:
| Package | Downloads |
|---|---|
|
OElite.Services.Platform
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.9 | 53 | 8/31/2026 |