Inhalte aufrufen

Profilbild

Standalone database for new plugin

plugin database

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

#1 Bố Kün

Bố Kün

    Newbie

  • Members
  • 5 Beiträge

Geschrieben: 28 February 2021 - 08:29

Dear SSers,

 

I'm wrining new plugin for SS4.11. I have used visual studio project template to create new one Plugin called "SmartStore.MyPlugin".

 

In MyPlugin, i have custom own DataContext extends from ObectContextBase. I did add-migration and update-database successful, my custom tables has created on main SS database (really magic, thank ss team)

 

But i have a ideal. I want MyPlugin have a sparate database. When run update-database, all query will apply to new database. 

 

Any one implement this ideal, i need your helps!

 

Thanks & BR.



#2 Bố Kün

Bố Kün

    Newbie

  • Members
  • 5 Beiträge

Geschrieben: 28 February 2021 - 11:09

Hi all,

 

I have resolved my issue. I pass connection string to CustomObjectContext to sparate database

 

Thanks


  • stefanmueller gefällt das