Hi keyur_raval597,
I have updated a Table named TL_Cateqory and returned the updated record as my output:
DataClasses1DataContext is my dbml file in which i have dragged my table using server explorer.
DataClasses1DataContext obj1 = new DataClasses1DataContext();
Console.WriteLine(Update Single Record);
var sample = obj1.TL_Categories.Single(sd => sd.CategoryID == 6);
sample.CategoryName = "Hello";
obj1.SubmitChanges();
var output = obj1.TL_Categories.Where(c => c.CategoryID == 6);
Console.WriteLine(output);
foreach (var i in output)
{
Console.WriteLine(i.CategoryID+i.CategoryName+i.AddedBy);
}
Console.ReadKey();