During startup, the configuration requires access to the store entity.
If a user were to adjust the store entity a SQL Column not found error will be thrown. This occurs prior to the UpMigration specified within the StartEngine() method.
Add IMigrationManager.ApplyUpMigration code to ApplicationBuilderExtensions.StartEngine();
Within the DependencyRegistrar.BuildRegistration() there is a call to the store entity. Because the user is updating the store entity the system requires the column which is yet to be updated and a SQL error occurs.
How to solve:
Change the tutorial so that the migration is done prior to store access.
Add some form of checking to see if the store needs migration and do so.
For users, add the lines required on StartEngine() to the BuildRegistration() method and incorporate the namespace as per Visual Studio.
For the future:
Are other entities accessed prior to the migration? - I see a lot of users having issues with not being able to update their entities.
More detailed explanation
During startup, the configuration requires access to the store entity. If a user were to adjust the store entity a SQL Column not found error will be thrown. This occurs prior to the UpMigration specified within the StartEngine() method.
nopCommerce version:
4.3
Steps to reproduce the problem:
Using the update-existing-entity tutorial to update the store entity.
Within the DependencyRegistrar.BuildRegistration() there is a call to the store entity. Because the user is updating the store entity the system requires the column which is yet to be updated and a SQL error occurs.
How to solve:
For the future:
Are other entities accessed prior to the migration? - I see a lot of users having issues with not being able to update their entities.