Informix.EntityFramework.Core-lnx 4.1501.2.2026

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

HCL Informix Entity Framework Core Provider

This README provides a brief overview of the Informix Entity Framework Core Provider and instructions on how to integrate it into your project and run it.

Description

Informix database provider for Entity Framework Core. This package contains all the necessary native libraries and resource files needed for connecting to an Informix database server.

Installation

To integrate the Informix Entity Framework Core Provider into your project, follow these steps:

  1. Install .NET SDK Ensure that you have the .NET SDK installed on your system. You can download it from the official .NET website: https://dotnet.microsoft.com/download You can verify the installation by running: dotnet --version

  2. Add Provider Package: Add the Informix EF Core Provider package to your project using your preferred package manager. For example, if you're using NuGet, you can add it by running the following commands in the terminal:

    dotnet add package Informix.EntityFramework.Core
    dotnet add package Informix.Net.Core --version 4.0.2
    dotnet add package Microsoft.EntityFrameworkCore --version 5.0.17
    dotnet add package Microsoft.EntityFrameworkCore.Relational --version 5.0.17
    
  3. Reference Provider in Code: After adding the package, reference the provider in your code where you intend to use it. Import necessary namespaces and classes to access its functionalities.

Usage

Once you've integrated the Informix EF Core Provider into your project, you can utilize its features according to your requirements. Here's a basic example of how you can use it:

using System;
using System.Globalization;
using Microsoft.EntityFrameworkCore;
using Informix.EntityFramework.Core; // Import Informix EF Core Provider

namespace MyConsoleApp
{
    public class MyDbContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseInformix(
                "Database=dotnetdb;Server=ol_informix1410;User ID=informix;Password=password;");
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            CultureInfo.DefaultThreadCurrentCulture =
                CultureInfo.CreateSpecificCulture("de-DE");

            try
            {
                using (var dbContext = new MyDbContext())
                {
                    Console.WriteLine("Checking database connection...");

                    bool canConnect = dbContext.Database.CanConnect();

                    if (canConnect)
                    {
                        Console.WriteLine("Connection successful!");
                    }
                    else
                    {
                        Console.WriteLine("Could not connect to database.");
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Connection failed:");
                Console.WriteLine(ex.Message);
            }
        }
    }
}

Running the Application

To run your application after integrating the Informix EF Core Provider, execute the following command in the terminal within your project directory:

dotnet run

The Informix EF Core provider relies on accessing certain native libraries and resource files. Therefore, to execute it, you must define specific environment variables depending on the platform.

On Linux use:

informix@host1:/work$ INFORMIXDIR=bin/Debug/netcoreapp5.0/native/ LD_LIBRARY_PATH=$INFORMIXDIR/lib 
informix@host1:/work$ dotnet run
Checking database connection...
Connection successful!

on Windows use:

d:\work\cs>set PATH=%cd%\bin\Debug\netcoreapp5.0\native\bin;%PATH%
d:\work\work\cs>dotnet run
Checking database connection...
Connection successful!

Note: Remember, for Linux systems, set the INFORMIXDIR and LD_LIBRARY_PATH environment variables. On Windows, simply update the PATH variable before executing the "dotnet run" command.

Support

If you encounter any issues or have questions regarding the Informix .NET Core Provider, contact HCL Customer Support

For detailed guidance on effectively utilizing this component, refer to the resources and documentation available at Informix Entity Framewok Core Provider.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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.

This package has no dependencies.

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
4.1501.2.2026 103 8/25/2026