Franz.Common.EntityFramework.Oracle 1.2.64

dotnet add package Franz.Common.EntityFramework.Oracle --version 1.2.64                
NuGet\Install-Package Franz.Common.EntityFramework.Oracle -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.Oracle" 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.Oracle --version 1.2.64                
#r "nuget: Franz.Common.EntityFramework.Oracle, 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.Oracle as a Cake Addin
#addin nuget:?package=Franz.Common.EntityFramework.Oracle&version=1.2.64

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

Franz.Common.EntityFramework.Oracle

A specialized library within the Franz Framework that extends Entity Framework Core support for Oracle Database using the Oracle.EntityFrameworkCore provider. This package simplifies the configuration and integration of Oracle databases in .NET applications, supporting both single-tenant and multi-tenant environments.


Features

  • Oracle Database Integration:
    • Leverages Oracle.EntityFrameworkCore for Oracle database support.
  • Service Registration:
    • ServiceCollectionExtensions to streamline dependency injection for Oracle database contexts.
  • Multi-Tenancy Support:
    • Integrates with Franz.Common.MultiTenancy for multi-tenant Oracle database configurations.
  • Compatibility:
    • Fully integrates with Franz.Common.EntityFramework for shared utilities and repository patterns.

Version Information

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

Dependencies

This package relies on:

  • Oracle.EntityFrameworkCore (8.21.121): Official EF Core provider for Oracle databases.
  • Franz.Common.EntityFramework: Core EF utilities and patterns.
  • Franz.Common.MultiTenancy: Multi-tenancy support for database operations.

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.Oracle --Version 1.2.64

Usage

1. Configuring Oracle Context

Define a DbContext for Oracle integration:

using Microsoft.EntityFrameworkCore;

public class OracleDbContext : DbContext
{
    public OracleDbContext(DbContextOptions<OracleDbContext> options) : base(options) { }

    public DbSet<Order> Orders { get; set; }
}

2. Dependency Injection

Use ServiceCollectionExtensions to register Oracle database contexts:

using Franz.Common.EntityFramework.Oracle.Extensions;

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddOracleDbContext<OracleDbContext>(options =>
            options.UseOracle(
                "User Id=myUser;Password=myPassword;Data Source=myDataSource"
            ));
    }
}

3. Multi-Tenancy Support

Integrate with Franz.Common.MultiTenancy to support multiple tenants:

using Franz.Common.MultiTenancy;
using Franz.Common.EntityFramework.Oracle.Extensions;

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddMultiTenantOracleDbContext<OracleDbContext>(tenantOptions =>
        {
            tenantOptions.ConnectionStringResolver = tenantId =>
                $"User Id=tenant_{tenantId};Password=tenantPassword;Data Source=myDataSource";
        });
    }
}

Integration with Franz Framework

The Franz.Common.EntityFramework.Oracle package integrates seamlessly with:

  • Franz.Common.EntityFramework: Shared repository patterns and EF utilities.
  • Franz.Common.MultiTenancy: Simplifies multi-tenant database configurations.

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

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.2.64 3 1/29/2025
1.2.63 56 1/27/2025
1.2.62 42 1/8/2025