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.

NuGet Version .NET

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 database
  • PlatformDbRepository: Base class for Platform entity repositories
  • IDataRepository: 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
  • 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

Version Downloads Last updated
5.0.9-develop.7331 0 08/27/2026
5.0.9-develop.7315 0 08/26/2026
5.0.9-develop.7299 0 08/26/2026
5.0.9-develop.2450 3 07/21/2026
5.0.9-develop.2419 2 07/21/2026
5.0.9-develop.2373 2 07/21/2026
5.0.9-develop.2332 14 07/21/2026
5.0.9-develop.1591 3 07/08/2026
5.0.9-develop.1587 3 07/08/2026
5.0.9-develop.1580 3 07/08/2026
5.0.9-develop.1241 18 06/29/2026
5.0.9-develop.1143 5 06/27/2026
5.0.9-develop.928 6 05/29/2026
5.0.9-develop.642 6 03/08/2026
5.0.9-develop.532 3 03/08/2026
5.0.9-develop.531 3 03/08/2026
5.0.9-develop.530 4 03/08/2026
5.0.9-develop.529 4 03/08/2026
5.0.9-develop.528 5 03/08/2026
5.0.9-develop.526 6 03/08/2026
5.0.9-develop.525 9 03/08/2026
5.0.9-develop.523 4 03/08/2026
5.0.9-develop.522 3 03/08/2026
5.0.9-develop.517 3 03/08/2026
5.0.9-develop.515 3 03/08/2026
5.0.9-develop.514 3 03/08/2026
5.0.9-develop.511 3 03/08/2026
5.0.9-develop.510 3 03/08/2026
5.0.9-develop.509 3 03/08/2026
5.0.9-develop.480 3 03/08/2026
5.0.9-develop.478 3 03/08/2026
5.0.9-develop.477 3 03/08/2026
5.0.9-develop.476 3 03/08/2026
5.0.9-develop.472 3 03/08/2026
5.0.9-develop.471 3 03/08/2026
5.0.9-develop.470 3 03/08/2026
5.0.9-develop.462 3 03/08/2026
5.0.9-develop.448 3 03/08/2026
5.0.9-develop.446 3 03/08/2026
5.0.9-develop.443 5 03/08/2026
5.0.9-develop.441 3 03/08/2026
5.0.9-develop.415 3 03/08/2026
5.0.9-develop.412 3 03/08/2026
5.0.9-develop.411 3 03/08/2026
5.0.9-develop.410 3 03/08/2026
5.0.9-develop.409 3 03/08/2026
5.0.9-develop.402 3 03/08/2026
5.0.9-develop.399 3 03/08/2026
5.0.9-develop.394 3 03/08/2026
5.0.9-develop.391 4 03/08/2026
5.0.9-develop.389 5 03/08/2026
5.0.9-develop.376 3 03/08/2026
5.0.9-develop.374 3 03/08/2026
5.0.9-develop.373 3 03/08/2026
5.0.9-develop.372 4 03/08/2026
5.0.9-develop.259 3 03/08/2026
5.0.9-develop.258 4 03/08/2026
5.0.9-develop.244 5 03/08/2026
5.0.9-develop.240 3 03/08/2026
5.0.9-develop.239 4 03/08/2026
5.0.9-develop.238 4 03/08/2026
5.0.9-develop.236 4 03/08/2026
5.0.9-develop.235 6 03/08/2026
5.0.9-develop.234 6 03/08/2026
5.0.9-develop.227 5 03/08/2026
5.0.9-develop.226 8 03/08/2026
5.0.9-develop.225 3 03/08/2026
5.0.9-develop.224 5 03/08/2026
5.0.9-develop.222 5 03/08/2026
5.0.9-develop.216 6 03/08/2026
5.0.9-develop.215 5 03/08/2026
5.0.9-develop.212 6 03/08/2026
5.0.9-develop.211 5 03/08/2026
5.0.9-develop.210 4 03/08/2026