Jump to content

Photo

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

databasae configuration install ef migrations

  • Please log in to reply
6 replies to this topic

#1 kdenisinfo

kdenisinfo

    Member

  • Members
  • PipPip
  • 19 posts

Posted 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
  • 989 posts

Posted 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
  • PipPip
  • 19 posts

Posted 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
  • 989 posts

Posted 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
  • 989 posts

Posted 26 September 2019 - 16:38

model first

Code First.


Edited by Marcus Gesing, 28 October 2019 - 14:56.
Correction

Zihni Artar
SmartStore AG


#6 LarryL

LarryL

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 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 posts

Posted 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



Also tagged with one or more of these keywords: databasae, configuration, install ef, migrations