I am using Linq for Insert,Delete and update the database in my code.
While inserting data using InsertOnSubmit, I Am getting the cannot add an entity that already exists Exception.
Please have a look my code
private static void AddNewPriceSettings(PRICE_SETTING priceSettingsInfo)
{
PRICE_SETTING priceSetting = new PRICE_SETTING();
priceSetting = priceSettingsInfo;
DataContext.CommonUsers.PRICE_SETTINGs.InsertOnSubmit(priceSettingsInfo);
DataContext.CommonUsers.SubmitChanges();
}