C
C#4mo ago
ZEUS

Error Number:515,State:2,Class:16

can someone help here ?
No description
4 Replies
Angius
Angius4mo ago
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 boom
ZEUS
ZEUSOP4mo ago
and how can i solve it ?
Angius
Angius4mo ago
By not using a database model there And using a type that only contains what the request is expected to contain instead
ZEUS
ZEUSOP4mo ago
lemme try

Did you find this page helpful?