Jump to content

Photo

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


  • Please log in to reply
2 replies to this topic

#1 kurtulus.m

kurtulus.m

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 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

 

 

Attached Files



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3821 posts

Posted 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 likes this

Marcus Gesing

Smartstore AG


#3 kurtulus.m

kurtulus.m

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 06 January 2023 - 19:14

thank you for the information @Marcus




Also tagged with one or more of these keywords: ef, migration