Marventa.Framework 3.5.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Marventa.Framework --version 3.5.2
                    
NuGet\Install-Package Marventa.Framework -Version 3.5.2
                    
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="Marventa.Framework" Version="3.5.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Marventa.Framework" Version="3.5.2" />
                    
Directory.Packages.props
<PackageReference Include="Marventa.Framework" />
                    
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 Marventa.Framework --version 3.5.2
                    
#r "nuget: Marventa.Framework, 3.5.2"
                    
#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 Marventa.Framework@3.5.2
                    
#: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=Marventa.Framework&version=3.5.2
                    
Install as a Cake Addin
#tool nuget:?package=Marventa.Framework&version=3.5.2
                    
Install as a Cake Tool

Marventa Framework

Enterprise-grade .NET framework with Clean Architecture, CQRS, and 47+ modular features for .NET 8.0/9.0

NuGet Downloads

What's New in v3.5.1

Service Registration Fixes

  • Repository<T> pattern now auto-registered (no manual setup!)
  • Elasticsearch service auto-registered via EnableSearch flag
  • Outbox/Inbox pattern services via EnableMessaging flag
  • Projection management via EnableProjections flag

🔧 Dependency Management Fixed All dependencies (Serilog, StackExchange.Redis, etc.) now automatically installed - no manual package installation needed!

📚 Accurate Documentation

  • 27 production-ready features verified
  • Mock/placeholder implementations clearly marked
  • Complete feature status transparency

Quick Start

Installation

dotnet add package Marventa.Framework --version 3.5.1
# All dependencies automatic - no manual Serilog/Redis install needed!

Migrating from v3.4.x?

# 1. Remove manually installed dependencies (if any)
dotnet remove package Serilog
dotnet remove package Serilog.AspNetCore
dotnet remove package StackExchange.Redis
# ... etc

# 2. Update to v3.5.1
dotnet add package Marventa.Framework --version 3.5.1

# 3. Remove manual Repository registration (now automatic)
# Delete: services.AddScoped(typeof(IRepository<>), typeof(BaseRepository<>));

Basic Setup

using Marventa.Framework.Web.Extensions;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddMarventaFramework(builder.Configuration, options =>
{
    options.EnableCQRS = true;
    options.EnableRepository = true;
    options.EnableLogging = true;
    options.EnableCaching = true;
});

var app = builder.Build();
app.UseMarventaFramework(builder.Configuration);
app.Run();

Core Features

Base Entity Classes

  • BaseEntity - Audit tracking, soft delete, timestamps
  • AuditableEntity - Version control and concurrency
  • TenantBaseEntity - Multi-tenant isolation

CQRS with MediatR

  • Automatic validation with FluentValidation
  • Transaction management
  • Logging and performance tracking
  • Idempotency support

Repository Pattern

  • Generic repository with common operations
  • Unit of Work pattern
  • Specification pattern support
  • Soft delete handling

Pipeline Behaviors

  • ValidationBehavior - Automatic input validation
  • LoggingBehavior - Performance monitoring
  • TransactionBehavior - Automatic transaction management
  • IdempotencyBehavior - Duplicate prevention (implemented, manual registration required)

Example: Product CRUD

Entity

public class Product : BaseEntity
{
    public string Name { get; set; }
    public decimal Price { get; set; }
}

Command

public class CreateProductCommand : ICommand<Guid>
{
    public string Name { get; set; }
    public decimal Price { get; set; }
}

public class CreateProductCommandValidator : AbstractValidator<CreateProductCommand>
{
    public CreateProductCommandValidator()
    {
        RuleFor(x => x.Name).NotEmpty().MaximumLength(200);
        RuleFor(x => x.Price).GreaterThan(0);
    }
}

public class CreateProductCommandHandler : IRequestHandler<CreateProductCommand, Guid>
{
    private readonly IUnitOfWork _unitOfWork;

    public async Task<Guid> Handle(CreateProductCommand request, CancellationToken ct)
    {
        var product = new Product { Name = request.Name, Price = request.Price };
        await _unitOfWork.Repository<Product>().AddAsync(product, ct);
        return product.Id;
    }
}

Query

public class GetProductByIdQuery : IQuery<ProductDto>
{
    public Guid Id { get; set; }
}

public class GetProductByIdQueryHandler : IRequestHandler<GetProductByIdQuery, ProductDto>
{
    private readonly IRepository<Product> _repository;

    public async Task<ProductDto> Handle(GetProductByIdQuery request, CancellationToken ct)
    {
        var product = await _repository.GetByIdAsync(request.Id);
        return new ProductDto { Id = product.Id, Name = product.Name, Price = product.Price };
    }
}

Controller

[ApiController]
[Route("api/[controller]")]
public class ProductsController : ControllerBase
{
    private readonly IMediator _mediator;

    [HttpGet("{id}")]
    public async Task<ActionResult<ProductDto>> Get(Guid id)
        => Ok(await _mediator.Send(new GetProductByIdQuery { Id = id }));

    [HttpPost]
    public async Task<ActionResult<Guid>> Create(CreateProductCommand command)
        => CreatedAtAction(nameof(Get), new { id = await _mediator.Send(command) }, null);
}

Advanced Features

Multi-Tenancy

public class Customer : TenantBaseEntity
{
    public string CompanyName { get; set; }
}

Event Sourcing

public class OrderCreatedEvent : IDomainEvent
{
    public Guid OrderId { get; set; }
    public decimal Amount { get; set; }
}

Saga Pattern

public class OrderSaga : ISaga<OrderSagaState>
{
    public async Task ExecuteAsync(OrderSagaState state, CancellationToken ct)
    {
        // Distributed transaction logic
    }
}

CDN Integration

public class FileService
{
    private readonly IMarventaCDN _cdn;

    public async Task<string> UploadAsync(Stream file)
        => await _cdn.UploadAsync(file, new CDNUploadOptions());
}

Feature Status (v3.5.1)

Production Ready (27 features)

  • BaseDbContext, Repository, Unit of Work, CQRS, Saga, Outbox/Inbox, Projections
  • Caching (Memory/Redis), Elasticsearch
  • Email, SMS, Storage (Local/Cloud), CDN (Azure/AWS/CloudFlare)
  • JWT, Encryption, Multi-tenancy, Health Checks

⚠️ Mock/Development (6 features)

  • ML Service, Analytics, Mock CDN/Storage (for testing)

🚧 Roadmap (14 features)

  • Event Sourcing (infrastructure ready), Background Jobs, E-commerce features

See full README for detailed feature breakdown and usage examples.

Resources

License

MIT License - Free for personal and commercial use.

Built with love by Adem Kinatas

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
5.2.0 239 10/13/2025 5.2.0 is deprecated because it is no longer maintained.
5.1.0 279 10/5/2025 5.1.0 is deprecated because it is no longer maintained.
5.0.0 186 10/4/2025 5.0.0 is deprecated because it is no longer maintained.
4.6.0 198 10/3/2025 4.6.0 is deprecated because it is no longer maintained.
4.5.5 218 10/2/2025 4.5.5 is deprecated because it is no longer maintained.
4.5.4 212 10/2/2025 4.5.4 is deprecated because it is no longer maintained.
4.5.3 211 10/2/2025 4.5.3 is deprecated because it is no longer maintained.
4.5.2 213 10/2/2025 4.5.2 is deprecated because it is no longer maintained.
4.5.1 214 10/2/2025 4.5.1 is deprecated because it is no longer maintained.
4.5.0 216 10/2/2025 4.5.0 is deprecated because it is no longer maintained.
4.4.0 220 10/1/2025 4.4.0 is deprecated because it is no longer maintained.
4.3.0 219 10/1/2025 4.3.0 is deprecated because it is no longer maintained.
4.2.0 220 10/1/2025 4.2.0 is deprecated because it is no longer maintained.
4.1.0 213 10/1/2025 4.1.0 is deprecated because it is no longer maintained.
4.0.2 220 10/1/2025 4.0.2 is deprecated because it is no longer maintained.
4.0.1 212 10/1/2025 4.0.1 is deprecated because it is no longer maintained.
4.0.0 288 9/30/2025 4.0.0 is deprecated because it is no longer maintained.
3.5.2 221 9/30/2025 3.5.2 is deprecated because it is no longer maintained.
3.5.1 252 9/30/2025 3.5.1 is deprecated because it is no longer maintained.
3.4.1 257 9/30/2025 3.4.1 is deprecated because it is no longer maintained.
3.4.0 251 9/30/2025 3.4.0 is deprecated because it is no longer maintained.
3.3.2 264 9/30/2025 3.3.2 is deprecated because it is no longer maintained.
3.2.0 255 9/30/2025 3.2.0 is deprecated because it is no longer maintained.
3.1.0 254 9/29/2025 3.1.0 is deprecated because it is no longer maintained.
3.0.1 254 9/29/2025 3.0.1 is deprecated because it is no longer maintained.
3.0.1-preview-20250929165802 248 9/29/2025 3.0.1-preview-20250929165802 is deprecated because it is no longer maintained.
3.0.0 250 9/29/2025 3.0.0 is deprecated because it is no longer maintained.
3.0.0-preview-20250929164242 253 9/29/2025 3.0.0-preview-20250929164242 is deprecated because it is no longer maintained.
3.0.0-preview-20250929162455 250 9/29/2025 3.0.0-preview-20250929162455 is deprecated because it is no longer maintained.
2.12.0-preview-20250929161039 245 9/29/2025 2.12.0-preview-20250929161039 is deprecated because it is no longer maintained.
2.11.0 255 9/29/2025 2.11.0 is deprecated because it is no longer maintained.
2.10.0 256 9/29/2025 2.10.0 is deprecated because it is no longer maintained.
2.9.0 249 9/29/2025 2.9.0 is deprecated because it is no longer maintained.
2.8.0 252 9/29/2025 2.8.0 is deprecated because it is no longer maintained.
2.7.0 262 9/29/2025 2.7.0 is deprecated because it is no longer maintained.
2.6.0 256 9/28/2025 2.6.0 is deprecated because it is no longer maintained.
2.5.0 263 9/28/2025 2.5.0 is deprecated because it is no longer maintained.
2.4.0 254 9/28/2025 2.4.0 is deprecated because it is no longer maintained.
2.3.0 255 9/28/2025 2.3.0 is deprecated because it is no longer maintained.
2.2.0 257 9/28/2025 2.2.0 is deprecated because it is no longer maintained.
2.1.0 255 9/26/2025 2.1.0 is deprecated because it is no longer maintained.
2.0.9 259 9/26/2025 2.0.9 is deprecated because it is no longer maintained.
2.0.5 252 9/25/2025 2.0.5 is deprecated because it is no longer maintained.
2.0.4 260 9/25/2025 2.0.4 is deprecated because it is no longer maintained.
2.0.3 263 9/25/2025 2.0.3 is deprecated because it is no longer maintained.
2.0.1 261 9/25/2025 2.0.1 is deprecated because it is no longer maintained.
2.0.0 260 9/25/2025 2.0.0 is deprecated because it is no longer maintained.
1.1.2 337 9/24/2025 1.1.2 is deprecated because it is no longer maintained.
1.1.1 338 9/24/2025 1.1.1 is deprecated because it is no longer maintained.
1.1.0 258 9/24/2025 1.1.0 is deprecated because it is no longer maintained.
1.0.0 261 9/24/2025 1.0.0 is deprecated because it is no longer maintained.

v3.5.2: Critical packaging fix - Single unified package

🔧 PACKAGING FIX:
- Fixed NU1102 errors - all sub-packages now properly embedded
- No more missing package errors (Framework.Web, Framework.Core, etc.)
- All dependencies automatically included (Redis, Serilog, EF Core, etc.)
- Truly single-package deployment - just install Marventa.Framework

✅ WHAT'S INCLUDED (from v3.5.1):
- Repository<T> pattern auto-registered
- Elasticsearch, Outbox/Inbox, Projection services
- All 27 production-ready features
- Complete CQRS, Saga, Event Sourcing support

⚠️ BREAKING: Users must upgrade from 3.5.1 by removing any explicit sub-package references

See README.md for migration guide and complete feature documentation