public void DeleteProductFeedback(global::ApplicationData.Implementation.ProductFeedback entity) { if (entity.EntityState == global::System.Data.EntityState.Detached) { this.ObjectContext.ProductFeedbacks.Attach(entity); } this.DeleteEntity(entity); }
public void InsertProductFeedback(global::ApplicationData.Implementation.ProductFeedback entity) { if (entity.EntityState != global::System.Data.EntityState.Detached) { this.ObjectContext.ObjectStateManager.ChangeObjectState(entity, global::System.Data.EntityState.Added); } else { this.ObjectContext.ProductFeedbacks.AddObject(entity); } }
public void UpdateProductFeedback(global::ApplicationData.Implementation.ProductFeedback currentEntity) { global::System.ServiceModel.DomainServices.EntityFramework.ObjectContextExtensions.AttachAsModified(this.ObjectContext.ProductFeedbacks, currentEntity, this.ChangeSet.GetOriginal(currentEntity)); }