public void DeleteCustomer(global::ApplicationData.Implementation.Customer entity)
        {
            if (entity.EntityState == global::System.Data.EntityState.Detached)
            {
                this.ObjectContext.Customers.Attach(entity);
            }

            this.DeleteEntity(entity);
        }
 public void InsertCustomer(global::ApplicationData.Implementation.Customer entity)
 {
     if (entity.EntityState != global::System.Data.EntityState.Detached)
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(entity, global::System.Data.EntityState.Added);
     }
     else
     {
         this.ObjectContext.Customers.AddObject(entity);
     }
 }
 public void UpdateCustomer(global::ApplicationData.Implementation.Customer currentEntity)
 {
     global::System.ServiceModel.DomainServices.EntityFramework.ObjectContextExtensions.AttachAsModified(this.ObjectContext.Customers, currentEntity, this.ChangeSet.GetOriginal(currentEntity));
 }