Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to construct the database needed in this project? #28

Open
JacobLiou opened this issue Aug 11, 2017 · 3 comments
Open

How to construct the database needed in this project? #28

JacobLiou opened this issue Aug 11, 2017 · 3 comments

Comments

@JacobLiou
Copy link

while using correct connectionString, i cannnot build the correct database, tables etc...

@dxpux
Copy link

dxpux commented Nov 10, 2017

you can create an empty database, then run website, it will create tables.

@kfrancis
Copy link

You need to run update-database in your package manager console against the SocialGoal project

@sergiokml
Copy link

The class that determines how the database is created or updated is:

public class GoalsSampleData : CreateDatabaseIfNotExists<SocialGoalEntities> { }

https://www.entityframeworktutorial.net/code-first/database-initialization-strategy-in-code-first.aspx

In any case, you can go directly to the "Register" link to create a user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants