Franz.Common.EntityFramework.MariaDB 1.2.64

dotnet add package Franz.Common.EntityFramework.MariaDB --version 1.2.64                
NuGet\Install-Package Franz.Common.EntityFramework.MariaDB -Version 1.2.64                
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="Franz.Common.EntityFramework.MariaDB" Version="1.2.64" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Franz.Common.EntityFramework.MariaDB --version 1.2.64                
#r "nuget: Franz.Common.EntityFramework.MariaDB, 1.2.64"                
#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.
// Install Franz.Common.EntityFramework.MariaDB as a Cake Addin
#addin nuget:?package=Franz.Common.EntityFramework.MariaDB&version=1.2.64

// Install Franz.Common.EntityFramework.MariaDB as a Cake Tool
#tool nuget:?package=Franz.Common.EntityFramework.MariaDB&version=1.2.64                

Franz.Common.EntityFramework.MariaDB

A library within the Franz Framework designed to extend Entity Framework Core support for MariaDB using the Pomelo.EntityFrameworkCore.MySql provider. This package simplifies the configuration and integration of MariaDB with EF Core in .NET applications.


Features

  • MariaDB Integration:
    • Leverages Pomelo.EntityFrameworkCore.MySql for robust MariaDB support.
  • Service Registration:
    • ServiceCollectionExtensions to streamline dependency injection for MariaDB contexts.
  • Compatibility:
    • Fully integrates with the Franz.Common.EntityFramework package for shared utilities and repositories.

Version Information

  • Current Version: 1.2.64
  • Part of the private Franz Framework ecosystem.

Dependencies

This package relies on:

  • Microsoft.EntityFrameworkCore.Relational (8.0.0): Provides relational database functionality for EF Core.
  • Pomelo.EntityFrameworkCore.MySql (7.0.0): MariaDB provider for EF Core.
  • 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 --Version 1.2.64

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:

  1. Clone the repository. @ https://github.com/bestacio89/Franz.Common/
  2. Create a feature branch.
  3. 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.64

  • Upgrade version to .net 9
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Franz.Common.EntityFramework.MariaDB:

Package Downloads
Franz.Common.Http.EntityFramework

Shared utility library for the Franz Framework.

Franz.Common.Messaging.EntityFramework

Shared utility library for the Franz Framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.64 3 1/29/2025
1.2.63 38 1/27/2025
1.2.62 65 1/8/2025