The data source conversion (migration) is required.
The vanilla Composite C1 has XML files as it data source initially.
When you convert, all the data required by the system (even if you have no website yet) is moved to an SQL database where required tables are created.
Changing
Even though some code in Composite C1 gets to create some tables in an SQL database when you simply change this setting, it doesn't create all the required tables and doesn't fill them with all the required data because you haven't migrated your data source from XML files to an SQL database.
You shouldn't change the setting above before building Composite C1.
In short, your steps should be like this:
The vanilla Composite C1 has XML files as it data source initially.
When you convert, all the data required by the system (even if you have no website yet) is moved to an SQL database where required tables are created.
Changing
<Composite.Data.Plugins.DataProviderConfiguration defaultDynamicTypeDataProviderName="DynamicXmlDataProvider">
to <Composite.Data.Plugins.DataProviderConfiguration defaultDynamicTypeDataProviderName="DynamicSqlDataProvider">
is not just enough.Even though some code in Composite C1 gets to create some tables in an SQL database when you simply change this setting, it doesn't create all the required tables and doesn't fill them with all the required data because you haven't migrated your data source from XML files to an SQL database.
You shouldn't change the setting above before building Composite C1.
In short, your steps should be like this:
- Build the source.
- Run Composite C1 setup wizard - to initialize it. This will create the data source, XML-based initially. (Here you can choose not to install any starter website - the Bare Bones option. )
- Install the Composite.Tools.SqlServerDataProvider add-on.
- Convert your XML-based data source into the SQL-based one using this add-on.
- Use the system :)