Getting SQLite Error 19: 'NOT NULL constraint failed: Test.Id' on running test case #2924
Labels
External
This is an issue in a component not contained in this repository. It is open for tracking purposes.
I'm using ABP framework which is built on top of asp.net core and using entity framework core. I have tried to create PK to a different column other than the default Id column with the help of this solution. Its working fine for every scenario, but my test cases are failing. I have created TestId as PK, Id as autoincrement identity.
It's failing when I'm running test case to create the record and giving the following exception.
Testcase:
CreateNewTest Method
CreateTest Method
StackTrace
Code:
Generated migration:
Usage:
Further technical details
EF Core version: 2.0.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017 15.4
The text was updated successfully, but these errors were encountered: