how to update entity framework in c# 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);