how to update the records in db using entity framework code example
Example: how to update record using entity framework in c#
public void UpdateCustomer(Customer custDTO)
{
CustomerEntities ce = new CustomerEntities();
Customer cust = ce.Customers.Find(custDTO.Id);
if (cust != null)
{
DbEntityEntry ee = ctx.Entry(cust);