So I'm building a web application where I have a table without a primary key. In the past I always did builder.hasNoKey since that was supported for .NET Core 3.0.
Now the application is built in .NET Core 2.2 which means builder.hasNoKey isn't supported.
Is there any solution to this except from adding a primary key?
This is the exact error I'm getting: "The entity type 'XXX' requires a primary key to be defined."
Now the application is built in .NET Core 2.2 which means builder.hasNoKey isn't supported.
Is there any solution to this except from adding a primary key?
This is the exact error I'm getting: "The entity type 'XXX' requires a primary key to be defined."


