ミ★ 𝘢𝘣𝘤𝘥𝘦𝘧𝘩 ★彡
EF - Cannot insert the value NULL into column 'Id'
I have this entity:
I try to autofixture excluding the id but i dont think that works because its int so it will always default to 0 ? - fact check me pls
but the db should be handling generating its id, why do i get this error running the following test ?
Microsoft.Data.SqlClient.SqlException Cannot insert the value NULL into column 'Id', table 'pas.dbo.CorrespondenceAddress'; column does not allow nulls. INSERT fails.
and here is the live auto fixtured entity copied in rider:
6 replies