HI WELCOME TO KANSIRIS

How to update single field with Entity Framework

Leave a Comment
var tablename = new tablename{Id = 15}; // Retrieves Specific Record
tablename.name = “Google”; // Assigns New Value
context.Entry(tablename).Property(“name”).IsModified = true;
tablename.SaveChanges();

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.