4 Replies
You're trying to insert
null
into the Id
column of some table
Presumably, you use database models on your API boundary, instead of DTOs
Id
remains unfilled, thus null
Then you're trying to insert it
And boomand how can i solve it ?
By not using a database model there
And using a type that only contains what the request is expected to contain instead
lemme try