문제

at the line db.SaveChanges(); of the execution. I get the following error.

Note: I am performing an insert.

enter image description here

ERROR :

Cannot insert duplicate key row in object 'dbo.ProductVariant' with unique index 'ProductVarioant_Barcode'.The statement has been terminated.

도움이 되었습니까?

해결책

Error indicates that you are trying to insert a duplicate value inside Barcode column of ProductVariant table. While there is an unique constraint on ProductVariant.Barcode.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top