I\'m trying to insert order details into my DB, and it keeps saying:
Cannot insert explicit value for identity column in table \'Orders\' when IDENTIT
You have set IS Identity to YES that's why now you cant insert value for this column DB will automatically insert it by incrementing values..
And the thing i am seeing you set UserId as the primary key of the table which is wrong Order OoderID should be the primary key of the column.
Set UserID IsIdentify to false and OrderID IsEdentitfy to yes and made it primary key column.