Try our conversational search powered by Generative AI!

EcfSqlConnection connection string should be added automatically

Fixed in

EPiServer.Commerce 14.1.1

(Or a related package)

Created

Nov 11, 2021

Updated

Mar 30, 2022

State

Closed, Fixed and tested


Description

Fixed an issue where customers had to explicitly add the EcfSqlConnection connection string when configuring the application:

services.Configure<DataAccessOptions>(options =>
{
    options.ConnectionStrings.Add(new ConnectionStringOptions
    {
        ConnectionString = _configuration.GetConnectionString("EcfSqlConnection"),
        Name = "EcfSqlConnection"
    });
});

This is now automatically done in the .AddCommerce() extension method.