Saturday, June 9, 2018

Dotnet Core EF DB update syntax error

Hi,

I am currently in process of trying to learn dotnet core. I am trying to work with Postgresql database. I have done "dotnet ef migrations add NewMigration" and now I am trying to "dotnet ef database update"

I am however getting this error:

Failed executing DbCommand (7ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] INSERT INTO "EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES (20180609090519_NewMigration, 2.1.0-rtm-30799); Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "_NewMigration" at Npgsql.NpgsqlConnector.<DoReadMessage>d148.MoveNext()

If I am understanding this correctly it breaks down when it tries to insert into EFMigrationsHistory. Is there a way for me to see what the syntax error is and why is it doing it?

Dotnet Core EF DB update syntax error Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team