Inhalte aufrufen

Profilbild

Entity Framework (EF) migration

ef migration

Best Answer Marcus Gesing , 06 January 2023 - 18:35

In Smartstore 5, Fluent Migrator is used for database migrations (no longer Entity Framework Migrations).
 
You can see some commented out examples in the DevTools module.
 
The GoogleMerchantCenter module also uses a migration to store additional product data in a separate database table. Requirements, so that this succeeds, can be seen there. This includes especially the IDbContextConfigurationSource implementation.
 
Go to the full post


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
2 Antworten zu diesem Thema

#1 kurtulus.m

kurtulus.m

    Newbie

  • Members
  • Punkt
  • 2 Beiträge

Geschrieben: 06 January 2023 - 15:57

Hello,

How do I do EF migration?

 

For example Customer entity add column. Can you send sample code in core project without using plugin

 

 

Angehängte Bilder



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3831 Beiträge

Geschrieben: 06 January 2023 - 18:35   Best Answer

In Smartstore 5, Fluent Migrator is used for database migrations (no longer Entity Framework Migrations).
 
You can see some commented out examples in the DevTools module.
 
The GoogleMerchantCenter module also uses a migration to store additional product data in a separate database table. Requirements, so that this succeeds, can be seen there. This includes especially the IDbContextConfigurationSource implementation.
 

  • stefanmueller gefällt das

Marcus Gesing

Smartstore AG


#3 kurtulus.m

kurtulus.m

    Newbie

  • Members
  • Punkt
  • 2 Beiträge

Geschrieben: 06 January 2023 - 19:14

thank you for the information @Marcus




Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: ef, migration