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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OElite.Data.Platform" Version="5.0.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OElite.Data.Platform" Version="5.0.9" />
                    
Directory.Packages.props
<PackageReference Include="OElite.Data.Platform" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OElite.Data.Platform --version 5.0.9
                    
#r "nuget: OElite.Data.Platform, 5.0.9"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OElite.Data.Platform@5.0.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OElite.Data.Platform&version=5.0.9
                    
Install as a Cake Addin
#tool nuget:?package=OElite.Data.Platform&version=5.0.9
                    
Install as a Cake Tool

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.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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