OElite.Data 5.0.10-develop.20940

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,469
OElite.Services
Package Description
4,469
OElite.Common.Hosting
Package Description
4,029
OElite.Services
Package Description
4,028
OElite.Common.Hosting
Package Description
3,874
OElite.Services
Package Description
3,874
OElite.Services
Package Description
3,291
OElite.Common.Hosting
Package Description
3,254
OElite.Services
Package Description
2,210
OElite.Common.Hosting
Package Description
2,208
OElite.Common.Hosting
Package Description
1,523
OElite.Services
Package Description
1,503
OElite.Services
Package Description
1,023
OElite.Common.Hosting
Package Description
838
OElite.Services
Package Description
838
OElite.Services
Package Description
688
OElite.Common.Hosting
Package Description
684
OElite.Common.Hosting
Package Description
518
OElite.Common.Hosting
Package Description
469

.NET 10.0

Version Downloads Last updated
5.0.10-develop.20940 0 11/28/2026
5.0.10-develop.19593 3 11/25/2026
5.0.10-develop.19585 426 11/25/2026
5.0.10-develop.17467 3,294 11/11/2026
5.0.10-develop.15509 2 11/04/2026
5.0.10-develop.12213 1,219 10/24/2026
5.0.10-develop.9422 3,875 10/09/2026
5.0.10-develop.9420 4,042 10/09/2026
5.0.10-develop.8778 468 09/15/2026
5.0.10-develop.8740 463 09/11/2026
5.0.10-develop.8716 37 09/09/2026
5.0.10-develop.8698 5 09/09/2026
5.0.10-develop.8677 16 09/08/2026
5.0.10-develop.8671 68 09/08/2026
5.0.10-develop.8669 5 09/07/2026
5.0.10-develop.8668 4 09/07/2026
5.0.10-develop.8667 4 09/07/2026
5.0.10-develop.8666 4 09/07/2026
5.0.10-develop.8665 5 09/07/2026
5.0.10-develop.8646 6 09/07/2026
5.0.9 0 11/29/2026
5.0.9-develop.8637 1,518 09/06/2026
5.0.9-develop.8629 1,501 09/06/2026
5.0.9-develop.7922 5 08/31/2026
5.0.9-develop.7484 4 08/28/2026
5.0.9-develop.7331 2,219 08/27/2026
5.0.9-develop.7315 4 08/26/2026
5.0.9-develop.7299 4 08/26/2026
5.0.9-develop.2450 6 07/21/2026
5.0.9-develop.2419 6 07/21/2026
5.0.9-develop.2373 6 07/21/2026
5.0.9-develop.2332 4,470 07/21/2026
5.0.9-develop.1591 8 07/08/2026
5.0.9-develop.1587 7 07/08/2026
5.0.9-develop.1580 7 07/08/2026
5.0.9-develop.1241 687 06/29/2026
5.0.9-develop.1143 1,022 06/27/2026
5.0.9-develop.928 27 05/29/2026
5.0.9-develop.642 51 03/08/2026
5.0.9-develop.532 7 03/08/2026
5.0.9-develop.531 7 03/08/2026
5.0.9-develop.530 7 03/08/2026
5.0.9-develop.529 6 03/08/2026
5.0.9-develop.528 7 03/08/2026
5.0.9-develop.526 8 03/08/2026
5.0.9-develop.525 6 03/08/2026
5.0.9-develop.523 9 03/08/2026
5.0.9-develop.522 9 03/08/2026
5.0.9-develop.517 8 03/08/2026
5.0.9-develop.515 7 03/08/2026
5.0.9-develop.514 7 03/08/2026
5.0.9-develop.511 8 03/08/2026
5.0.9-develop.510 11 03/08/2026
5.0.9-develop.509 7 03/08/2026
5.0.9-develop.480 8 03/08/2026
5.0.9-develop.478 7 03/08/2026
5.0.9-develop.477 6 03/08/2026
5.0.9-develop.476 6 03/08/2026
5.0.9-develop.472 8 03/08/2026
5.0.9-develop.471 6 03/08/2026
5.0.9-develop.470 8 03/08/2026
5.0.9-develop.462 7 03/08/2026
5.0.9-develop.448 8 03/08/2026
5.0.9-develop.446 7 03/08/2026
5.0.9-develop.443 8 03/08/2026
5.0.9-develop.441 10 03/08/2026
5.0.9-develop.415 13 03/08/2026
5.0.9-develop.412 8 03/08/2026
5.0.9-develop.411 8 03/08/2026
5.0.9-develop.410 8 03/08/2026
5.0.9-develop.409 6 03/08/2026
5.0.9-develop.402 6 03/08/2026
5.0.9-develop.399 6 03/08/2026
5.0.9-develop.394 6 03/08/2026
5.0.9-develop.391 9 03/08/2026
5.0.9-develop.389 8 03/08/2026
5.0.9-develop.376 7 03/08/2026
5.0.9-develop.374 7 03/08/2026
5.0.9-develop.373 6 03/08/2026
5.0.9-develop.372 8 03/08/2026
5.0.9-develop.259 9 03/08/2026
5.0.9-develop.258 10 03/08/2026
5.0.9-develop.244 7 03/08/2026
5.0.9-develop.240 9 03/08/2026
5.0.9-develop.239 8 03/08/2026
5.0.9-develop.238 8 03/08/2026
5.0.9-develop.236 7 03/08/2026
5.0.9-develop.235 6 03/08/2026
5.0.9-develop.234 8 03/08/2026
5.0.9-develop.227 8 03/08/2026
5.0.9-develop.226 6 03/08/2026
5.0.9-develop.225 5 03/08/2026
5.0.9-develop.224 6 03/08/2026
5.0.9-develop.222 5 03/08/2026
5.0.9-develop.216 7 03/08/2026
5.0.9-develop.215 5 03/08/2026
5.0.9-develop.212 5 03/08/2026
5.0.9-develop.211 5 03/08/2026
5.0.9-develop.210 5 03/08/2026
5.0.7-ci.1125 33 03/08/2026