Closed
Description
Description
fail: Microsoft.EntityFrameworkCore.Database.Command[20102]
Failed executing DbCommand (3ms) [Parameters=[@p0='?' (DbType = Int32), @p1='?'], CommandType='Text', CommandTimeout='30']
INSERT INTO "Articles" ("AuthorId", "Name")
VALUES (@p0, @p1)
RETURNING "Id";
...
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Npgsql.PostgresException: 23503: insert or update on table "Articles" violates foreign key constraint "FK_Articles_Authors_AuthorId"
...
Failed JsonApiDotNetCoreExampleTests.Acceptance.ManyToManyTests.Can_Create_Many_To_Many
Error Message:
/api/v1/articles returned InternalServerError status code with payload: {"errors":[{"title":"DbUpdateException","detail":"An error occurred while updating the entries. See the inner exception for details.","status":"500"}]}
https://travis-ci.org/json-api-dotnet/JsonApiDotNetCore/builds/436911634#L1278