public void RemoveItems(IQueryable <ShoppingCartItem> items) { foreach (ShoppingCartItem item in items) { Container.DisposeInstance(item); } }
/// <summary> /// Delete the object from the persistent object store /// </summary> protected static void DisposeInstance(object persistentObject) { Container.DisposeInstance(persistentObject); }
public void RemoveSalesReason(SalesOrderHeaderSalesReason reason) { this.SalesOrderHeaderSalesReason.Remove(reason); Container.DisposeInstance(reason); }