Ejemplo n.º 1
0
        public void DeleteSpecificLabs(global::ApplicationData.Implementation.SpecificLabs entity)
        {
            if (entity.EntityState == global::System.Data.EntityState.Detached)
            {
                this.ObjectContext.SpecificLabsSet.Attach(entity);
            }

            this.DeleteEntity(entity);
        }
Ejemplo n.º 2
0
 public void InsertSpecificLabs(global::ApplicationData.Implementation.SpecificLabs entity)
 {
     if (entity.EntityState != global::System.Data.EntityState.Detached)
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(entity, global::System.Data.EntityState.Added);
     }
     else
     {
         this.ObjectContext.SpecificLabsSet.AddObject(entity);
     }
 }
Ejemplo n.º 3
0
 public void UpdateSpecificLabs(global::ApplicationData.Implementation.SpecificLabs currentEntity)
 {
     global::System.ServiceModel.DomainServices.EntityFramework.ObjectContextExtensions.AttachAsModified(this.ObjectContext.SpecificLabsSet, currentEntity, this.ChangeSet.GetOriginal(currentEntity));
 }