at the line db.SaveChanges();
of the execution. I get the following error.
Note: I am performing an insert.
ERROR :
Cannot insert duplicate key row in object 'dbo.ProductVariant' with unique index 'ProductVarioant_Barcode'.The statement has been terminated.