OElite.Data 5.0.9

OElite.Data

Core data access layer: generic repository, DbCentre base, and MongoDB integration primitives for OElite applications.

NuGet Version .NET

Overview

OElite.Data provides the foundational data access patterns for OElite applications. It defines the DataRepository<T> generic repository, the DbCentre base class for MongoDB-backed data centres, and the IDataRepository contract that all repositories implement.

This package is consumed by both the OElite.Common.Hosting services layer (for dependency injection wiring) and by every application-specific repository that extends DataRepository<T> to add entity-specific queries.

Features

📚 Repository Pattern

  • DataRepository<T>: Generic repository base class providing standard CRUD operations
  • IDataRepository: Interface contract for all repositories (enables mocking and substitution)
  • Type-safe entity operations with async/await throughout

🗄️ DbCentre Base

  • MongoDB Integration: Base class for MongoDB-backed data centres
  • Connection lifecycle management
  • Collection accessor utilities
  • Logging integration with IAppConfig

🔌 Extensibility

  • Subclassable for application-specific repositories
  • Supports custom query methods per entity type
  • Compatible with OElite.Restme.MongoDb for advanced MongoDB features

Quick Start

1. Installation

dotnet add package OElite.Data

2. Define a Custom Repository

using OElite.Data;
using OElite.Restme.Utils;

public class ProductRepository : DataRepository<Product>
{
    public ProductRepository(DbCentre dbCentre) : base(dbCentre) { }

    public Task<List<Product>> GetByCategoryAsync(string categoryId)
    {
        return FindAsync(p => p.CategoryId == categoryId);
    }
}

Dependencies

  • OElite.Restme 2.x (MongoDB driver, IRestme provider)
  • OElite.Restme.Utils 2.x (BaseEntity, attributes)
  • OElite.Data.Platform - Platform-specific repositories, PlatformDb, and platform index management
  • OElite.Common.Hosting - DI auto-discovery and configuration

License

Copyright (c) Phanes. All rights reserved.

Showing the top 20 packages that depend on OElite.Data.

Packages Downloads
OElite.Common.Hosting
Package Description
4,411
OElite.Services
Package Description
4,410
OElite.Common.Hosting
Package Description
2,805
OElite.Services
Package Description
2,805
OElite.Common.Hosting
Package Description
2,069
OElite.Services
Package Description
2,069
OElite.Services
Package Description
1,828
OElite.Common.Hosting
Package Description
1,826
OElite.Services
Package Description
1,022
OElite.Common.Hosting
Package Description
928
OElite.Services
Package Description
908
OElite.Common.Hosting
Package Description
797
OElite.Services
Package Description
797
OElite.Services
Package Description
687
OElite.Common.Hosting
Package Description
683
OElite.Common.Hosting
Package Description
517
OElite.Common.Hosting
Package Description
468
OElite.Services
Package Description
466
OElite.Services
Package Description
462

.NET 10.0

Version Downloads Last updated
5.0.10-develop.15509 0 11/04/2026
5.0.10-develop.12213 1,163 10/24/2026
5.0.10-develop.9422 2,806 10/09/2026
5.0.10-develop.9420 2,083 10/09/2026
5.0.10-develop.8778 467 09/15/2026
5.0.10-develop.8740 462 09/11/2026
5.0.10-develop.8716 36 09/09/2026
5.0.10-develop.8698 4 09/09/2026
5.0.10-develop.8677 15 09/08/2026
5.0.10-develop.8671 67 09/08/2026
5.0.10-develop.8669 4 09/07/2026
5.0.10-develop.8668 3 09/07/2026
5.0.10-develop.8667 3 09/07/2026
5.0.10-develop.8666 3 09/07/2026
5.0.10-develop.8665 4 09/07/2026
5.0.10-develop.8646 5 09/07/2026
5.0.9 0 11/05/2026
5.0.9-develop.8637 923 09/06/2026
5.0.9-develop.8629 906 09/06/2026
5.0.9-develop.7922 4 08/31/2026
5.0.9-develop.7484 3 08/28/2026
5.0.9-develop.7331 1,837 08/27/2026
5.0.9-develop.7315 3 08/26/2026
5.0.9-develop.7299 3 08/26/2026
5.0.9-develop.2450 5 07/21/2026
5.0.9-develop.2419 5 07/21/2026
5.0.9-develop.2373 5 07/21/2026
5.0.9-develop.2332 4,412 07/21/2026
5.0.9-develop.1591 7 07/08/2026
5.0.9-develop.1587 6 07/08/2026
5.0.9-develop.1580 6 07/08/2026
5.0.9-develop.1241 686 06/29/2026
5.0.9-develop.1143 1,021 06/27/2026
5.0.9-develop.928 26 05/29/2026
5.0.9-develop.642 50 03/08/2026
5.0.9-develop.532 6 03/08/2026
5.0.9-develop.531 6 03/08/2026
5.0.9-develop.530 6 03/08/2026
5.0.9-develop.529 5 03/08/2026
5.0.9-develop.528 6 03/08/2026
5.0.9-develop.526 7 03/08/2026
5.0.9-develop.525 5 03/08/2026
5.0.9-develop.523 8 03/08/2026
5.0.9-develop.522 8 03/08/2026
5.0.9-develop.517 7 03/08/2026
5.0.9-develop.515 6 03/08/2026
5.0.9-develop.514 6 03/08/2026
5.0.9-develop.511 7 03/08/2026
5.0.9-develop.510 10 03/08/2026
5.0.9-develop.509 6 03/08/2026
5.0.9-develop.480 7 03/08/2026
5.0.9-develop.478 6 03/08/2026
5.0.9-develop.477 5 03/08/2026
5.0.9-develop.476 5 03/08/2026
5.0.9-develop.472 7 03/08/2026
5.0.9-develop.471 5 03/08/2026
5.0.9-develop.470 7 03/08/2026
5.0.9-develop.462 6 03/08/2026
5.0.9-develop.448 7 03/08/2026
5.0.9-develop.446 6 03/08/2026
5.0.9-develop.443 7 03/08/2026
5.0.9-develop.441 9 03/08/2026
5.0.9-develop.415 12 03/08/2026
5.0.9-develop.412 7 03/08/2026
5.0.9-develop.411 7 03/08/2026
5.0.9-develop.410 7 03/08/2026
5.0.9-develop.409 5 03/08/2026
5.0.9-develop.402 5 03/08/2026
5.0.9-develop.399 5 03/08/2026
5.0.9-develop.394 5 03/08/2026
5.0.9-develop.391 8 03/08/2026
5.0.9-develop.389 7 03/08/2026
5.0.9-develop.376 6 03/08/2026
5.0.9-develop.374 6 03/08/2026
5.0.9-develop.373 5 03/08/2026
5.0.9-develop.372 7 03/08/2026
5.0.9-develop.259 8 03/08/2026
5.0.9-develop.258 9 03/08/2026
5.0.9-develop.244 6 03/08/2026
5.0.9-develop.240 8 03/08/2026
5.0.9-develop.239 7 03/08/2026
5.0.9-develop.238 7 03/08/2026
5.0.9-develop.236 6 03/08/2026
5.0.9-develop.235 5 03/08/2026
5.0.9-develop.234 7 03/08/2026
5.0.9-develop.227 7 03/08/2026
5.0.9-develop.226 5 03/08/2026
5.0.9-develop.225 4 03/08/2026
5.0.9-develop.224 5 03/08/2026
5.0.9-develop.222 4 03/08/2026
5.0.9-develop.216 6 03/08/2026
5.0.9-develop.215 4 03/08/2026
5.0.9-develop.212 4 03/08/2026
5.0.9-develop.211 4 03/08/2026
5.0.9-develop.210 4 03/08/2026
5.0.7-ci.1125 11 03/08/2026