Inhalte aufrufen

Profilbild

So pls explain me how the system checks if database was installed ?

databasae configuration install ef migrations

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

#1 kdenisinfo

kdenisinfo

    Member

  • Members
  • PunktPunkt
  • 19 Beiträge

Geschrieben: 24 September 2019 - 13:06

So pls explain me how the system checks if database was installed sussessfully? 

1. Just by creating the settings.txt with connextion string 
2. By editing any configuration file ? say me which one?
3. By editing same configurations database tables, which one ?   

something else or the combination of mentioned by me 

Another question is how the samle data is populated to database ? 

Appreciate any help ?

I'm talking about Store source code not the Community 



#2 Artar

Artar

    SmartStore AG

  • Administrators
  • 999 Beiträge

Geschrieben: 25 September 2019 - 16:03

Hello,

I'd like to help you, but your posts are a little confused.

If Smartstore.NET was installed correctly, a settings.txt exists under \app-data\tenants\default. The content will be correct because the file was just created by Smartstore.NET during the installation.

You can specify whether to create sample data before the installation.

Zihni Artar
SmartStore AG


#3 kdenisinfo

kdenisinfo

    Member

  • Members
  • PunktPunkt
  • 19 Beiträge

Geschrieben: 26 September 2019 - 15:39

Ohh. Thanx.. 

Tell me please which approach do you use in the solution :
Model First, Database First or Code First ? 

really appreciate help 



#4 Artar

Artar

    SmartStore AG

  • Administrators
  • 999 Beiträge

Geschrieben: 26 September 2019 - 16:38

you have to set Smartstore.Web as the startup project.

Zihni Artar
SmartStore AG


#5 Artar

Artar

    SmartStore AG

  • Administrators
  • 999 Beiträge

Geschrieben: 26 September 2019 - 16:38

model first

Code First.


Bearbeitet von Marcus Gesing, 28 October 2019 - 14:56,
Correction

Zihni Artar
SmartStore AG


#6 LarryL

LarryL

    Newbie

  • Members
  • Punkt
  • 4 Beiträge

Geschrieben: 27 October 2019 - 07:13

With all due respect, I think the answer to OP's question regarding the EF approach should be Code First on. This is based on my limited review of your projects, so sorry if I missed something.



#7 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 28 October 2019 - 19:02

A valid connection string in the settings.txt file is a prerequisite. Furthermore, during initialization, our custom DbContext checks the existence of some important tables.


Murat Cakir
SmartStore AG



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: databasae, configuration, install ef, migrations