Franz.Common.EntityFramework.MariaDB
2.3.1
dotnet add package Franz.Common.EntityFramework.MariaDB --version 2.3.1
NuGet\Install-Package Franz.Common.EntityFramework.MariaDB -Version 2.3.1
<PackageReference Include="Franz.Common.EntityFramework.MariaDB" Version="2.3.1" />
<PackageVersion Include="Franz.Common.EntityFramework.MariaDB" Version="2.3.1" />
<PackageReference Include="Franz.Common.EntityFramework.MariaDB" />
paket add Franz.Common.EntityFramework.MariaDB --version 2.3.1
#r "nuget: Franz.Common.EntityFramework.MariaDB, 2.3.1"
#:package Franz.Common.EntityFramework.MariaDB@2.3.1
#addin nuget:?package=Franz.Common.EntityFramework.MariaDB&version=2.3.1
#tool nuget:?package=Franz.Common.EntityFramework.MariaDB&version=2.3.1
Franz.Common.EntityFramework.MariaDB
Persistence and infrastructure integration for the Franz.Common framework on .NET 10.
Overview
The Franz.Common.EntityFramework.MariaDB package provides persistence and infrastructure integration within Franz.Common. It is designed to compose with the rest of the framework rather than imposing unrelated infrastructure choices on every application.
Installation
dotnet add package Franz.Common.EntityFramework.MariaDB
Design principles
- Explicit composition: register only the capabilities the application needs.
- Clear boundaries: keep domain and application contracts independent from provider-specific infrastructure where the package's role permits it.
- Predictable behavior: make configuration, failure modes, and lifecycle ownership visible rather than relying on hidden conventions.
- Operational readiness: validate security, resilience, diagnostics, and compatibility for the actual deployment environment.
Usage and configuration
Follow the package-specific setup, configuration, and code examples below. Only configure external services when this package requires them, and keep secrets outside source control.
Package-specific guide
A library within the Franz Framework designed to extend Entity Framework Core support for MariaDB using the Microting.EntityFrameworkCore.MySql provider. This package simplifies the configuration and integration of MariaDB with EF Core in .NET applications.
Features
- MariaDB Integration:
- Leverages
Microting.EntityFrameworkCore.MySqlfor robust MariaDB support.
- Leverages
- Service Registration:
ServiceCollectionExtensionsto streamline dependency injection for MariaDB contexts.
- Compatibility:
- Fully integrates with the Franz.Common.EntityFramework package for shared utilities and repositories.
Version Information
Current Version: v2.3.0
- Part of the private Franz Framework ecosystem.
Dependencies
This package relies on:
- Microsoft.EntityFrameworkCore.Relational (10.0.14): Provides relational database functionality for EF Core 10.
- Microting.EntityFrameworkCore.MySql (10.0.13): MariaDB/MySQL provider aligned with EF Core 10. This is a community-maintained fork with renamed package/namespace identity, not the original Pomelo package; validate query translation, migrations, and runtime behavior against supported MariaDB versions before release.
- Franz.Common.EntityFramework: Shared utilities and patterns for database integration.
Installation
From Private Azure Feed
Since this package is hosted privately, configure your NuGet client:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.EntityFramework.MariaDB
Usage
1. Configure MariaDB Context
Define a DbContext for MariaDB integration:
using Microsoft.EntityFrameworkCore;
public class MariaDbContext : DbContext
{
public MariaDbContext(DbContextOptions<MariaDbContext> options) : base(options) { }
public DbSet<Order> Orders { get; set; }
}
2. Dependency Injection
Use ServiceCollectionExtensions to register MariaDB contexts:
using Franz.Common.EntityFramework.MariaDB.Extensions;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMariaDbContext<MariaDbContext>(options =>
options.UseMySql(
"Server=localhost;Database=MyDatabase;User=root;Password=my_password;",
new MariaDbServerVersion(new Version(10, 5, 12)) // Specify your MariaDB version
));
}
}
3. Multi-Database Support
This package integrates with Franz.Common.EntityFramework for managing multiple databases, enabling seamless operations across different database types.
Integration with Franz Framework
The Franz.Common.EntityFramework.MariaDB package integrates seamlessly with:
- Franz.Common.EntityFramework: Provides shared patterns for repositories and database management.
- Franz.Common: Core utilities for the framework.
Ensure these dependencies are installed to fully leverage the library's capabilities.
Contributing
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
- Clone the repository. @ https://github.com/bestacio89/Franz.Common/
- Create a feature branch.
- Submit a pull request for review.
License
This library is licensed under the MIT License. See the LICENSE file for more details.
Changelog
Version 1.2.65
- Upgrade version to .net 9
Version 1.3
- Upgraded to .NET 9.0.8
- Added new features and improvements
- Separated business concepts from mediator concepts
- Now compatible with both the in-house mediator and MediatR
Version 1.6.20
- Updated to .NET 10.0
v2.0.1 – Internal Modernization
- Messaging and infrastructure refactored for async, thread-safety, and modern .NET 10 patterns.
- All APIs remain fully backward compatible.
- Tests, listeners, and pipeline components modernized.
Dependency maintenance — October 2026
Compatibility status: Microting.EntityFrameworkCore.MySql 10.0.13 declares compatibility with EF Core 10 and MariaDB 11.4 LTS. This resolves the package-version mismatch, but does not prove behavioral equivalence with the former Pomelo provider. Run MariaDB integration tests for model creation, CRUD, relationships, LINQ translation, transactions, and migrations before publishing. See the repository dependency upgrade record.
| Product | Versions 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. |
-
net10.0
- Franz.Common.EntityFramework (>= 2.3.1)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.14)
- Microting.EntityFrameworkCore.MySql (>= 10.0.13)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Franz.Common.EntityFramework.MariaDB:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.EntityFramework
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.EntityFramework
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.1 | 74 | 10/26/2026 |
| 2.3.0 | 181 | 7/21/2026 |
| 2.2.19 | 149 | 7/19/2026 |
| 2.2.18 | 145 | 7/19/2026 |
| 2.2.17 | 240 | 7/12/2026 |
| 2.2.16 | 142 | 7/2/2026 |
| 2.2.15 | 157 | 6/29/2026 |
| 2.2.14 | 148 | 6/29/2026 |
| 2.2.13 | 153 | 6/29/2026 |
| 2.2.12 | 144 | 6/28/2026 |
| 2.2.11 | 144 | 6/28/2026 |
| 2.2.10 | 145 | 6/28/2026 |
| 2.2.9 | 145 | 6/28/2026 |
| 2.2.8 | 143 | 6/28/2026 |
| 2.2.7 | 148 | 6/7/2026 |
| 2.2.6 | 154 | 6/6/2026 |
| 2.2.5 | 152 | 6/4/2026 |
| 2.2.4 | 147 | 6/3/2026 |
| 2.2.3 | 144 | 6/2/2026 |
| 2.2.2 | 147 | 6/2/2026 |