Ejemplo n.º 1
0
        protected override void RemoveItem(int index)
        {
            T itemToDelete = this[index];

            base.RemoveItem(index);

            lock (EntitySet.SyncRoot)
            {
                if (!suppressUpdatesToEntitySet)
                {
                    suppressUpdatesFromEntitySet = true;
                    EntitySet.Delete(itemToDelete);
                    suppressUpdatesFromEntitySet = false;
                }
            }
        }
 public void Delete(Demographic entity)
 {
     Demographics.Delete(entity);
 }
 public void Delete(Address entity)
 {
     Addresses.Delete(entity);
 }
 public void Delete(Person entity)
 {
     People.Delete(entity);
 }
Ejemplo n.º 5
0
 public void Delete(Parent entity)
 {
     ParentSet.Delete(entity);
 }
 public void Delete(Product entity)
 {
     Products.Delete(entity);
 }
 void IEntitySet <TEntity> .Delete(TEntity entity)
 {
     _entitySet.Delete(entity);
     _data.Remove(entity);
 }
Ejemplo n.º 8
0
 public void Delete(BRecord entity)
 {
     BRecords.Delete(entity);
 }
Ejemplo n.º 9
0
 public void Delete(ARecord entity)
 {
     ARecords.Delete(entity);
 }
Ejemplo n.º 10
0
 public void Delete(Blog entity)
 {
     Blogs.Delete(entity);
 }
Ejemplo n.º 11
0
 public void Delete(User entity)
 {
     Users.Delete(entity);
 }