Hi
Greetings to everyone
I have a problem with the try it out on pages 555 up to 561.
And i have two pottential problems:
In the table Review, where the Id column has (Is Identity) to Yes, when i try to add new review, this code shows up:
Cannot insert explicit value for identity column in table 'Review' when IDENTITY_INSERT is set to OFF. And it point to the:
mojaEntity.SaveChanges(); where mojaEntity is myEntity.
Another thing, looking like from dark side of the force,
if the (Is Identity) switched to No, and then i try add new review through AddEditReviewHandCoded.aspx, this error comes up:
Violation of PRIMARY KEY constraint 'PK_Review'. Cannot insert duplicate key in object 'dbo.Review'. The duplicate key value is (0).
The statement has been terminated.
How i can fix it?
~Thanks very much for your help
