Using HCL OneDB .NET EF Core Provider
UseOneDB(<Connection String>) is only override method specific to OneDB, 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.UseOneDB("Database=efcoredb; server=onedb;User ID=user1; Password=xxxx; Host=127.0.0.1; Protocol=onsoctcp; Service=8909; connectdatabase=no");
}
Note: All the connection options are same as .NET Core Provider (ConnectionString property).