public void DeleteAudiogram(global::ApplicationData.Implementation.Audiogram entity) { if (entity.EntityState == global::System.Data.EntityState.Detached) { this.ObjectContext.Audiograms.Attach(entity); } this.DeleteEntity(entity); }
public void InsertAudiogram(global::ApplicationData.Implementation.Audiogram entity) { if (entity.EntityState != global::System.Data.EntityState.Detached) { this.ObjectContext.ObjectStateManager.ChangeObjectState(entity, global::System.Data.EntityState.Added); } else { this.ObjectContext.Audiograms.AddObject(entity); } }
public void UpdateAudiogram(global::ApplicationData.Implementation.Audiogram currentEntity) { global::System.ServiceModel.DomainServices.EntityFramework.ObjectContextExtensions.AttachAsModified(this.ObjectContext.Audiograms, currentEntity, this.ChangeSet.GetOriginal(currentEntity)); }