Using Informix .NET EF Core Provider
UseInformix(<Connection String>) is only override method specific to Informix, every
.NET EF Core application calls method OnConfiguring(), in this method we need to call
database provider specific connection API. Any database specific parameters needs to be passed
as part of connection
string.
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseInformix("Database=efcoredb; server=Informix; User ID=user1; Password=xxxx; connectdatabase=no");
}
Note: All the connection options are same as .NET Core Provider (ConnectionString property).