I am trying to update an entity directly as follows
ServisEntity servis = new ServisEntity();
try
{
servis.IsNew = false;
servis.Serviskod = "000:2756"; // Primary key
servis.ServisTipKod = 1;
servis.BolgeKod = "30";
servis.KisaUnvan = "deneme";
servis.Unvan1 = "deneme";
servis.Eposta = "testqtest.com";
servis.Save();
}
catch (Exception hata)
{
Console.WriteLine(hata.Message);
}
If there is a record with the given key value there is no error but if there is no record I am receiving the following error
"During a save action an entity's update action failed. The entity which failed is enclosed"
Best Regards
Koksal