简体   繁体   中英

Create Tables with EntityFramework using Pomelo.EntityFrameworkCore.MySql

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

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM