-1

Create an empty database called "Lesson Authentication", using MySQL Workbench in linux Mint.

When I try to save my actions I get this error error

Here is my tiny project My Repository

1
  • 1
    Please add the code and your exception into your question. Commented Oct 3, 2017 at 18:20

2 Answers 2

0

Your error clearly mentions the Table "LessonAuthentication.Users" doesnt exist......

Create a table with name 'LessonAuthentication.Users' and load your data into the table.

Sign up to request clarification or add additional context in comments.

2 Comments

Or Maybe I need to put name "lessonAuthentication.user" in OnmodelCreating where I have entity<user>().toTable("") ?
@LukaszTomalczyk 'LessonAuthentication.Users' itself is the total table name, I would try creating with that name....
0

You can see the inner exception showing that the table Users doesnt exist.

You need to create the table Users before trying to insert any data.

For EF, Please refer to this question: Entity Framework code first, isn't creating the database

1 Comment

But i shouldn't create manual table. Entity should do this for me, yes? I have dbset<user> Users . That is the correct name I want to have. Or I am wrong

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.