I successfully used npgsql (Npgsql.EntityFrameworkCore.PostgreSQL) to connect to PostgreSQL database. I have heard that same EF provider works well with CockroachDB. I am trying with it but need help to define connection string for CockroachDB. For PostgreSQL I have used following connection string:
optionsBuilder.UseNpgsql(@"Host=localhost;Database=<database>;Username=postgres;Password=<password>");
Does anybody know what should a connection string look like if I wish to connect it to CockroachDB?