EntityFramework Database First approach with mysql returns error "[MySqlException (0x80004005): Table 'dbpetshop.dbpetshop.tbcarro' doesn't exist]"

-1

Error message Image

I'm using the database first and I'm new to programming, so I don't have much experience in correcting errors, basically when I try to add new data to the database, it doesn't work and returns this error:

[MySqlException (0x80004005): Table 'dbpetshop.dbpetshop.tbcarro' doesn't exist] MySql.Data.MySqlClient.MySqlStream.ReadPacket() +389 MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId) +623 MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) +119 MySql.Data.MySqlClient.MySqlDataReader.NextResult() +1118 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +2312 MySql.Data.EntityFramework.EFMySqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +43 System.Data.Entity.Infrastructure.Interception.InternalDispatcher1.Dispatch(TTarget target, Func3 operation, TInterceptionContext interceptionContext, Action3 executing, Action3 executed) +98 System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext) +510 System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +36

c#
mysql
entity-framework
ef-database-first
asked on Stack Overflow Oct 20, 2020 by Natuba • edited Oct 20, 2020 by Natuba

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0