public ApplicationDbContext Create(string databaseName = null) { DbContextOptionsBuilder <ApplicationDbContext> builder = new DbContextOptionsBuilder <ApplicationDbContext>(); string connectionString = dbConnectionConfig.GetConnectionString(); builder.UseNpgsql(connectionString); return(new ApplicationDbContext(builder.Options)); }
public IDbConnection CreateConnection() { return(CreateConnection(dbConnectionConfig.GetConnectionString())); }