Pervaxis.Core.Data 1.6.0

dotnet add package Pervaxis.Core.Data --version 1.6.0
                    
NuGet\Install-Package Pervaxis.Core.Data -Version 1.6.0
                    
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="Pervaxis.Core.Data" Version="1.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pervaxis.Core.Data" Version="1.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Pervaxis.Core.Data" />
                    
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 Pervaxis.Core.Data --version 1.6.0
                    
#r "nuget: Pervaxis.Core.Data, 1.6.0"
                    
#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 Pervaxis.Core.Data@1.6.0
                    
#: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=Pervaxis.Core.Data&version=1.6.0
                    
Install as a Cake Addin
#tool nuget:?package=Pervaxis.Core.Data&version=1.6.0
                    
Install as a Cake Tool

Pervaxis.Core.Data

Data access abstractions: repository contracts, unit of work, and composable query builder. Implements Section 10 of the Pervaxis Platform Spec.

Installation

dotnet add package Pervaxis.Core.Data

Repository Pattern

All repositories implement IRepository<TEntity, TId>:

// Define domain-specific repository interface
public interface IOrderRepository : IRepository<OrderEntity, Guid>
{
    Task<IReadOnlyList<OrderEntity>> GetByTenantAsync(
        TenantId tenantId, CancellationToken ct = default);

    Task<IReadOnlyList<OrderEntity>> GetPendingAsync(
        TenantId tenantId, CancellationToken ct = default);
}

// Implement in the infrastructure layer (not in this package)
public sealed class SupabaseOrderRepository : IOrderRepository
{
    // ... Supabase PostgreSQL implementation
}

Unit of Work

Wrap multiple repository operations in a single transaction boundary:

public class PlaceOrderHandler(IOrderRepository orders, IUnitOfWork uow)
{
    public async Task HandleAsync(PlaceOrderCommand command, CancellationToken ct)
    {
        var order = Order.Create(command);
        await orders.AddAsync(order, ct);
        await uow.CommitAsync(ct);
    }
}

Query Builder

Compose tenant-scoped, paginated queries:

var result = await queryBuilder
    .ForTenant(tenantId)
    .Where(o => o.Status == OrderStatus.Pending)
    .OrderByDescending(o => o.CreatedAt)
    .ToPagedResultAsync(pageNumber: 1, pageSize: 20, ct);

Data Store Selection (Section 10)

Store Technology Use Case
Relational Supabase PostgreSQL Transactional business data
Cache AWS ElastiCache (Redis) Hot paths, rate control
Search AWS OpenSearch Text search, operational lookup
Time-series AWS Timestream Telemetry, sensor data
Vector pgvector AI embeddings

Each service owns its data — never query across service boundaries directly.


Pervaxis Platform · Clarivex Technologies · https://clarivex.tech

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.0 95 6/6/2026